Upgrade from 2.2.5 to 2.2.6

This commit is contained in:
alena 2011-05-17 15:22:59 -07:00
parent 33bf819afc
commit b5ab92af89
3 changed files with 6 additions and 4 deletions

View File

@ -41,6 +41,7 @@ import com.cloud.upgrade.dao.Upgrade218to22;
import com.cloud.upgrade.dao.Upgrade218to224DomainVlans;
import com.cloud.upgrade.dao.Upgrade221to222;
import com.cloud.upgrade.dao.Upgrade222to224;
import com.cloud.upgrade.dao.Upgrade225to226;
import com.cloud.upgrade.dao.UpgradeSnapshot217to224;
import com.cloud.upgrade.dao.UpgradeSnapshot223to224;
import com.cloud.upgrade.dao.VersionDao;
@ -69,6 +70,7 @@ public class DatabaseUpgradeChecker implements SystemIntegrityChecker {
_upgradeMap.put("2.2.1", new DbUpgrade[] { new Upgrade221to222(), new UpgradeSnapshot223to224(), new Upgrade222to224()});
_upgradeMap.put("2.2.2", new DbUpgrade[] { new Upgrade222to224(), new UpgradeSnapshot223to224() });
_upgradeMap.put("2.2.3", new DbUpgrade[] { new Upgrade222to224(), new UpgradeSnapshot223to224() });
_upgradeMap.put("2.2.5", new DbUpgrade[] { new Upgrade225to226()});
}
protected void runScript(File file) {

View File

@ -23,16 +23,16 @@ import java.sql.Connection;
import com.cloud.utils.exception.CloudRuntimeException;
import com.cloud.utils.script.Script;
public class Upgrade224to225 implements DbUpgrade {
public class Upgrade225to226 implements DbUpgrade {
@Override
public String[] getUpgradableVersionRange() {
return new String[] {"2.2.4"};
return new String[] {"2.2.5"};
}
@Override
public String getUpgradedVersion() {
return "2.2.5";
return "2.2.6";
}
@Override

View File

@ -1,5 +1,5 @@
--;
-- Schema upgrade from 2.2.4 to 2.2.5;
-- Schema upgrade from 2.2.5 to 2.2.6;
--;
ALTER TABLE `cloud`.`mshost` ADD COLUMN `runid` bigint NOT NULL DEFAULT 0 COMMENT 'run id, combined with msid to form a cluster session';