Skip to content

Commit f943575

Browse files
committed
engine/schema: add upgrade path from 4.14.0.0 to 4.14.1.0
1 parent 4d33e15 commit f943575

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
@@ -68,6 +68,7 @@
6868
import com.cloud.upgrade.dao.Upgrade41200to41300;
6969
import com.cloud.upgrade.dao.Upgrade41300to41310;
7070
import com.cloud.upgrade.dao.Upgrade41310to41400;
71+
import com.cloud.upgrade.dao.Upgrade41400to41410;
7172
import com.cloud.upgrade.dao.Upgrade420to421;
7273
import com.cloud.upgrade.dao.Upgrade421to430;
7374
import com.cloud.upgrade.dao.Upgrade430to440;
@@ -191,6 +192,7 @@ public DatabaseUpgradeChecker() {
191192
.next("4.12.0.0", new Upgrade41200to41300())
192193
.next("4.13.0.0", new Upgrade41300to41310())
193194
.next("4.13.1.0", new Upgrade41310to41400())
195+
.next("4.14.0.0", new Upgrade41400to41410())
194196
.build();
195197
}
196198

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 Upgrade41400to41410 implements DbUpgrade {
23+
@Override
24+
public String[] getUpgradableVersionRange() {
25+
return new String[] {"4.14.0.0", "4.14.1.0"};
26+
}
27+
28+
@Override
29+
public String getUpgradedVersion() {
30+
return "4.14.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)