Skip to content

Commit 91d448f

Browse files
committed
schema: Add upgrade path from 4.3.2 to 4.5.0
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
1 parent 2db1dd7 commit 91d448f

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
import com.cloud.upgrade.dao.Upgrade421to430;
6868
import com.cloud.upgrade.dao.Upgrade430to440;
6969
import com.cloud.upgrade.dao.Upgrade431to440;
70+
import com.cloud.upgrade.dao.Upgrade432to440;
7071
import com.cloud.upgrade.dao.Upgrade440to441;
7172
import com.cloud.upgrade.dao.Upgrade441to450;
7273
import com.cloud.upgrade.dao.UpgradeSnapshot217to224;
@@ -215,6 +216,8 @@ public DatabaseUpgradeChecker() {
215216

216217
_upgradeMap.put("4.3.1", new DbUpgrade[] {new Upgrade431to440(), new Upgrade440to441(), new Upgrade441to450()});
217218

219+
_upgradeMap.put("4.3.2", new DbUpgrade[] {new Upgrade432to440(), new Upgrade440to441(), new Upgrade441to450()});
220+
218221
_upgradeMap.put("4.4.0", new DbUpgrade[] {new Upgrade440to441(), new Upgrade441to450()});
219222

220223
_upgradeMap.put("4.4.1", new DbUpgrade[] { new Upgrade441to450() });
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
18+
package com.cloud.upgrade.dao;
19+
20+
import org.apache.log4j.Logger;
21+
22+
public class Upgrade432to440 extends Upgrade431to440 implements DbUpgrade {
23+
final static Logger s_logger = Logger.getLogger(Upgrade432to440.class);
24+
25+
@Override
26+
public String[] getUpgradableVersionRange() {
27+
return new String[] {"4.3.2", "4.4.0"};
28+
}
29+
30+
@Override
31+
public String getUpgradedVersion() {
32+
return "4.4.0";
33+
}
34+
35+
@Override
36+
public boolean supportsRollingUpgrade() {
37+
return false;
38+
}
39+
}

0 commit comments

Comments
 (0)