Skip to content

Commit e9b652a

Browse files
authored
Updated upgrade path (#3971)
* Updated upgrade path * Added license info
1 parent cd6f0cb commit e9b652a

2 files changed

Lines changed: 54 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
import com.cloud.upgrade.dao.Upgrade41120to41130;
6767
import com.cloud.upgrade.dao.Upgrade41120to41200;
6868
import com.cloud.upgrade.dao.Upgrade41200to41300;
69+
import com.cloud.upgrade.dao.Upgrade41300to41310;
6970
import com.cloud.upgrade.dao.Upgrade420to421;
7071
import com.cloud.upgrade.dao.Upgrade421to430;
7172
import com.cloud.upgrade.dao.Upgrade430to440;
@@ -187,6 +188,7 @@ public DatabaseUpgradeChecker() {
187188
.next("4.11.2.0", new Upgrade41120to41130())
188189
.next("4.11.3.0", new Upgrade41120to41200())
189190
.next("4.12.0.0", new Upgrade41200to41300())
191+
.next("4.13.0.0", new Upgrade41300to41310())
190192
.build();
191193
}
192194

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Licensed to the Apache Software Foundation (ASF) under one
2+
// or more contributor license agreements. See the NOTICE file
3+
// distributed with this work for additional information
4+
// regarding copyright ownership. The ASF licenses this file
5+
// to you under the Apache License, Version 2.0 (the
6+
// "License"); you may not use this file except in compliance
7+
// with the License. You may obtain a copy of the License at
8+
//
9+
// http://www.apache.org/licenses/LICENSE-2.0
10+
//
11+
// Unless required by applicable law or agreed to in writing,
12+
// software distributed under the License is distributed on an
13+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
14+
// KIND, either express or implied. See the License for the
15+
// specific language governing permissions and limitations
16+
// under the License.
17+
package com.cloud.upgrade.dao;
18+
19+
import java.io.InputStream;
20+
import java.sql.Connection;
21+
22+
public class Upgrade41300to41310 implements DbUpgrade {
23+
@Override
24+
public String[] getUpgradableVersionRange() {
25+
return new String[] {"4.13.0.0", "4.13.1.0"};
26+
}
27+
28+
@Override
29+
public String getUpgradedVersion() {
30+
return "4.13.1.0";
31+
}
32+
33+
@Override
34+
public boolean supportsRollingUpgrade() {
35+
return false;
36+
}
37+
38+
@Override
39+
public InputStream[] getPrepareScripts() {
40+
return new InputStream[0];
41+
}
42+
43+
@Override
44+
public void performDataMigration(Connection conn) {
45+
46+
}
47+
48+
@Override
49+
public InputStream[] getCleanupScripts() {
50+
return new InputStream[0];
51+
}
52+
}

0 commit comments

Comments
 (0)