schema: Add upgrade path from 4.3.2 to 4.5.0

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Rohit Yadav 2014-11-20 14:15:11 +05:30
parent 2db1dd7432
commit 91d448ff45
2 changed files with 42 additions and 0 deletions

View File

@ -67,6 +67,7 @@ import com.cloud.upgrade.dao.Upgrade420to421;
import com.cloud.upgrade.dao.Upgrade421to430;
import com.cloud.upgrade.dao.Upgrade430to440;
import com.cloud.upgrade.dao.Upgrade431to440;
import com.cloud.upgrade.dao.Upgrade432to440;
import com.cloud.upgrade.dao.Upgrade440to441;
import com.cloud.upgrade.dao.Upgrade441to450;
import com.cloud.upgrade.dao.UpgradeSnapshot217to224;
@ -215,6 +216,8 @@ public class DatabaseUpgradeChecker implements SystemIntegrityChecker {
_upgradeMap.put("4.3.1", new DbUpgrade[] {new Upgrade431to440(), new Upgrade440to441(), new Upgrade441to450()});
_upgradeMap.put("4.3.2", new DbUpgrade[] {new Upgrade432to440(), new Upgrade440to441(), new Upgrade441to450()});
_upgradeMap.put("4.4.0", new DbUpgrade[] {new Upgrade440to441(), new Upgrade441to450()});
_upgradeMap.put("4.4.1", new DbUpgrade[] { new Upgrade441to450() });

View File

@ -0,0 +1,39 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.
package com.cloud.upgrade.dao;
import org.apache.log4j.Logger;
public class Upgrade432to440 extends Upgrade431to440 implements DbUpgrade {
final static Logger s_logger = Logger.getLogger(Upgrade432to440.class);
@Override
public String[] getUpgradableVersionRange() {
return new String[] {"4.3.2", "4.4.0"};
}
@Override
public String getUpgradedVersion() {
return "4.4.0";
}
@Override
public boolean supportsRollingUpgrade() {
return false;
}
}