Skip to content

Commit 84bede2

Browse files
Updated upgrade paths (#3972)
* Updated upgrade paths * Added license info Co-authored-by: dahn <daan.hoogland@shapeblue.com>
1 parent 173174c commit 84bede2

4 files changed

Lines changed: 9 additions & 13 deletions

File tree

engine/schema/src/main/java/com/cloud/upgrade/DatabaseUpgradeChecker.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
import com.cloud.upgrade.dao.Upgrade41120to41200;
6868
import com.cloud.upgrade.dao.Upgrade41200to41300;
6969
import com.cloud.upgrade.dao.Upgrade41300to41310;
70-
import com.cloud.upgrade.dao.Upgrade41300to41400;
70+
import com.cloud.upgrade.dao.Upgrade41310to41400;
7171
import com.cloud.upgrade.dao.Upgrade420to421;
7272
import com.cloud.upgrade.dao.Upgrade421to430;
7373
import com.cloud.upgrade.dao.Upgrade430to440;
@@ -189,12 +189,8 @@ public DatabaseUpgradeChecker() {
189189
.next("4.11.2.0", new Upgrade41120to41130())
190190
.next("4.11.3.0", new Upgrade41120to41200())
191191
.next("4.12.0.0", new Upgrade41200to41300())
192-
<<<<<<< HEAD
193-
.next("4.13.0.0", new Upgrade41300to41400())
194-
.next("4.13.1.0", new Upgrade41300to41400())
195-
=======
196192
.next("4.13.0.0", new Upgrade41300to41310())
197-
>>>>>>> 4.13
193+
.next("4.13.1.0", new Upgrade41310to41400())
198194
.build();
199195
}
200196

engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade41300to41400.java renamed to engine/schema/src/main/java/com/cloud/upgrade/dao/Upgrade41310to41400.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
import com.cloud.hypervisor.Hypervisor;
3333
import com.cloud.utils.exception.CloudRuntimeException;
3434

35-
public class Upgrade41300to41400 implements DbUpgrade {
35+
public class Upgrade41310to41400 implements DbUpgrade {
3636

37-
final static Logger LOG = Logger.getLogger(Upgrade41300to41400.class);
37+
final static Logger LOG = Logger.getLogger(Upgrade41310to41400.class);
3838

3939
@Override
4040
public String[] getUpgradableVersionRange() {
41-
return new String[] {"4.13.0.0", "4.14.0.0"};
41+
return new String[] {"4.13.1.0", "4.14.0.0"};
4242
}
4343

4444
@Override
@@ -53,7 +53,7 @@ public boolean supportsRollingUpgrade() {
5353

5454
@Override
5555
public InputStream[] getPrepareScripts() {
56-
final String scriptFile = "META-INF/db/schema-41300to41400.sql";
56+
final String scriptFile = "META-INF/db/schema-41310to41400.sql";
5757
final InputStream script = Thread.currentThread().getContextClassLoader().getResourceAsStream(scriptFile);
5858
if (script == null) {
5959
throw new CloudRuntimeException("Unable to find " + scriptFile);
@@ -237,7 +237,7 @@ private void updateSystemVmTemplates(final Connection conn) {
237237

238238
@Override
239239
public InputStream[] getCleanupScripts() {
240-
final String scriptFile = "META-INF/db/schema-41300to41400-cleanup.sql";
240+
final String scriptFile = "META-INF/db/schema-41310to41400-cleanup.sql";
241241
final InputStream script = Thread.currentThread().getContextClassLoader().getResourceAsStream(scriptFile);
242242
if (script == null) {
243243
throw new CloudRuntimeException("Unable to find " + scriptFile);

engine/schema/src/main/resources/META-INF/db/schema-41300to41400-cleanup.sql renamed to engine/schema/src/main/resources/META-INF/db/schema-41310to41400-cleanup.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
-- under the License.
1717

1818
--;
19-
-- Schema upgrade cleanup from 4.13.0.0 to 4.14.0.0
19+
-- Schema upgrade cleanup from 4.13.1.0 to 4.14.0.0
2020
--;
2121

2222
DELETE FROM `cloud`.`configuration` WHERE name = 'host.maintenance.retries';

engine/schema/src/main/resources/META-INF/db/schema-41300to41400.sql renamed to engine/schema/src/main/resources/META-INF/db/schema-41310to41400.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
-- under the License.
1717

1818
--;
19-
-- Schema upgrade from 4.13.0.0 to 4.14.0.0
19+
-- Schema upgrade from 4.13.1.0 to 4.14.0.0
2020
--;
2121

2222
-- KVM: enable storage data motion on KVM hypervisor_capabilities

0 commit comments

Comments
 (0)