]> source.dussan.org Git - sonarqube.git/blob
b23fdcbf8612dc56dccc8a11c1d754eaac28e5d4
[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
46 public class MigrationConfigurationModule extends Module {
47   @Override
48   protected void configureModule() {
49     add(
50       // DbVersion implementations
51       DbVersion56.class,
52       DbVersion561.class,
53       DbVersion60.class,
54       DbVersion61.class,
55       DbVersion62.class,
56       DbVersion63.class,
57       DbVersion64.class,
58       DbVersion65.class,
59       DbVersion66.class,
60       DbVersion67.class,
61       DbVersion70.class,
62       DbVersion71.class,
63       DbVersion72.class,
64       DbVersion73.class,
65       DbVersion74.class,
66       DbVersion75.class,
67       DbVersion76.class,
68       DbVersion77.class,
69       DbVersion78.class,
70
71       // migration steps
72       MigrationStepRegistryImpl.class,
73       new MigrationStepsProvider(),
74
75       // history
76       MigrationHistoryImpl.class);
77   }
78 }