]> source.dussan.org Git - sonarqube.git/blob
b11239533fe0b3e56c10d9d96ab9a7a4c3e26a70
[sonarqube.git] /
1 /*
2  * SonarQube
3  * Copyright (C) 2009-2019 SonarSource SA
4  * mailto:info AT sonarsource DOT com
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 3 of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
19  */
20 package org.sonar.server.platform.db.migration;
21
22 import org.sonar.core.platform.Module;
23 import org.sonar.server.platform.db.migration.history.MigrationHistoryImpl;
24 import org.sonar.server.platform.db.migration.step.MigrationStepRegistryImpl;
25 import org.sonar.server.platform.db.migration.step.MigrationStepsProvider;
26 import org.sonar.server.platform.db.migration.version.v56.DbVersion56;
27 import org.sonar.server.platform.db.migration.version.v561.DbVersion561;
28 import org.sonar.server.platform.db.migration.version.v60.DbVersion60;
29 import org.sonar.server.platform.db.migration.version.v61.DbVersion61;
30 import org.sonar.server.platform.db.migration.version.v62.DbVersion62;
31 import org.sonar.server.platform.db.migration.version.v63.DbVersion63;
32 import org.sonar.server.platform.db.migration.version.v64.DbVersion64;
33 import org.sonar.server.platform.db.migration.version.v65.DbVersion65;
34 import org.sonar.server.platform.db.migration.version.v66.DbVersion66;
35 import org.sonar.server.platform.db.migration.version.v67.DbVersion67;
36 import org.sonar.server.platform.db.migration.version.v70.DbVersion70;
37 import org.sonar.server.platform.db.migration.version.v71.DbVersion71;
38 import org.sonar.server.platform.db.migration.version.v72.DbVersion72;
39 import org.sonar.server.platform.db.migration.version.v73.DbVersion73;
40 import org.sonar.server.platform.db.migration.version.v74.DbVersion74;
41 import org.sonar.server.platform.db.migration.version.v75.DbVersion75;
42 import org.sonar.server.platform.db.migration.version.v76.DbVersion76;
43 import org.sonar.server.platform.db.migration.version.v77.DbVersion77;
44 import org.sonar.server.platform.db.migration.version.v78.DbVersion78;
45 import org.sonar.server.platform.db.migration.version.v79.DbVersion79;
46
47 public class MigrationConfigurationModule extends Module {
48   @Override
49   protected void configureModule() {
50     add(
51       // DbVersion implementations
52       DbVersion56.class,
53       DbVersion561.class,
54       DbVersion60.class,
55       DbVersion61.class,
56       DbVersion62.class,
57       DbVersion63.class,
58       DbVersion64.class,
59       DbVersion65.class,
60       DbVersion66.class,
61       DbVersion67.class,
62       DbVersion70.class,
63       DbVersion71.class,
64       DbVersion72.class,
65       DbVersion73.class,
66       DbVersion74.class,
67       DbVersion75.class,
68       DbVersion76.class,
69       DbVersion77.class,
70       DbVersion78.class,
71       DbVersion79.class,
72
73       // migration steps
74       MigrationStepRegistryImpl.class,
75       new MigrationStepsProvider(),
76
77       // history
78       MigrationHistoryImpl.class);
79   }
80 }