|
16 | 16 | // under the License. |
17 | 17 | package com.cloud.upgrade; |
18 | 18 |
|
| 19 | +import static com.google.common.base.Preconditions.checkArgument; |
| 20 | +import static com.google.common.collect.ObjectArrays.concat; |
| 21 | + |
| 22 | +import java.io.IOException; |
| 23 | +import java.io.InputStream; |
| 24 | +import java.io.InputStreamReader; |
| 25 | +import java.sql.Connection; |
| 26 | +import java.sql.SQLException; |
| 27 | +import java.util.Arrays; |
| 28 | +import java.util.Date; |
| 29 | + |
| 30 | +import javax.inject.Inject; |
| 31 | + |
| 32 | +import org.apache.commons.lang.StringUtils; |
| 33 | +import org.apache.log4j.Logger; |
| 34 | + |
| 35 | +import com.google.common.annotations.VisibleForTesting; |
| 36 | + |
| 37 | +import org.apache.cloudstack.utils.CloudStackVersion; |
| 38 | + |
19 | 39 | import com.cloud.upgrade.dao.DbUpgrade; |
20 | 40 | import com.cloud.upgrade.dao.Upgrade217to218; |
21 | 41 | import com.cloud.upgrade.dao.Upgrade218to22; |
|
42 | 62 | import com.cloud.upgrade.dao.Upgrade307to410; |
43 | 63 | import com.cloud.upgrade.dao.Upgrade30to301; |
44 | 64 | import com.cloud.upgrade.dao.Upgrade40to41; |
| 65 | +import com.cloud.upgrade.dao.Upgrade41000to41100; |
45 | 66 | import com.cloud.upgrade.dao.Upgrade410to420; |
| 67 | +import com.cloud.upgrade.dao.Upgrade41100to41110; |
46 | 68 | import com.cloud.upgrade.dao.Upgrade41110to41200; |
47 | 69 | import com.cloud.upgrade.dao.Upgrade420to421; |
48 | 70 | import com.cloud.upgrade.dao.Upgrade421to430; |
|
68 | 90 | import com.cloud.upgrade.dao.Upgrade4910to4920; |
69 | 91 | import com.cloud.upgrade.dao.Upgrade4920to4930; |
70 | 92 | import com.cloud.upgrade.dao.Upgrade4930to41000; |
71 | | -import com.cloud.upgrade.dao.Upgrade41000to41100; |
72 | | -import com.cloud.upgrade.dao.Upgrade41100to41110; |
73 | 93 | import com.cloud.upgrade.dao.UpgradeSnapshot217to224; |
74 | 94 | import com.cloud.upgrade.dao.UpgradeSnapshot223to224; |
75 | 95 | import com.cloud.upgrade.dao.VersionDao; |
|
82 | 102 | import com.cloud.utils.db.TransactionLegacy; |
83 | 103 | import com.cloud.utils.exception.CloudRuntimeException; |
84 | 104 |
|
85 | | -import com.google.common.annotations.VisibleForTesting; |
86 | | -import org.apache.cloudstack.utils.CloudStackVersion; |
87 | | -import org.apache.commons.lang.StringUtils; |
88 | | -import org.apache.log4j.Logger; |
89 | | - |
90 | | -import javax.inject.Inject; |
91 | | -import java.io.IOException; |
92 | | -import java.io.InputStream; |
93 | | -import java.io.InputStreamReader; |
94 | | -import java.sql.Connection; |
95 | | -import java.sql.SQLException; |
96 | | -import java.util.Arrays; |
97 | | -import java.util.Date; |
98 | | - |
99 | | -import static com.google.common.base.Preconditions.checkArgument; |
100 | | -import static com.google.common.collect.ObjectArrays.concat; |
101 | | - |
102 | 105 | public class DatabaseUpgradeChecker implements SystemIntegrityChecker { |
103 | 106 | private static final Logger s_logger = Logger.getLogger(DatabaseUpgradeChecker.class); |
104 | 107 | private final DatabaseVersionHierarchy hierarchy; |
|
0 commit comments