]> source.dussan.org Git - sonarqube.git/blob
a196b02f2bc21517efaef5d1ce5ecdf82fb03766
[sonarqube.git] /
1 /*
2  * SonarQube
3  * Copyright (C) 2009-2018 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
43 public class MigrationConfigurationModule extends Module {
44   @Override
45   protected void configureModule() {
46     add(
47       // DbVersion implementations
48       DbVersion56.class,
49       DbVersion561.class,
50       DbVersion60.class,
51       DbVersion61.class,
52       DbVersion62.class,
53       DbVersion63.class,
54       DbVersion64.class,
55       DbVersion65.class,
56       DbVersion66.class,
57       DbVersion67.class,
58       DbVersion70.class,
59       DbVersion71.class,
60       DbVersion72.class,
61       DbVersion73.class,
62       DbVersion74.class,
63       DbVersion75.class,
64
65       // migration steps
66       MigrationStepRegistryImpl.class,
67       new MigrationStepsProvider(),
68
69       // history
70       MigrationHistoryImpl.class);
71   }
72 }