You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2014/11/20 09:56:52 UTC
git commit: updated refs/heads/4.5 to 91d448f
Repository: cloudstack
Updated Branches:
refs/heads/4.5 2db1dd743 -> 91d448ff4
schema: Add upgrade path from 4.3.2 to 4.5.0
Signed-off-by: Rohit Yadav <ro...@shapeblue.com>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/91d448ff
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/91d448ff
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/91d448ff
Branch: refs/heads/4.5
Commit: 91d448ff4576086b875436a6a002e0be32352657
Parents: 2db1dd7
Author: Rohit Yadav <ro...@shapeblue.com>
Authored: Thu Nov 20 14:15:11 2014 +0530
Committer: Rohit Yadav <ro...@shapeblue.com>
Committed: Thu Nov 20 14:15:11 2014 +0530
----------------------------------------------------------------------
.../cloud/upgrade/DatabaseUpgradeChecker.java | 3 ++
.../com/cloud/upgrade/dao/Upgrade432to440.java | 39 ++++++++++++++++++++
2 files changed, 42 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/91d448ff/engine/schema/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/upgrade/DatabaseUpgradeChecker.java b/engine/schema/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
index fcc5c37..50ad3ac 100755
--- a/engine/schema/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
+++ b/engine/schema/src/com/cloud/upgrade/DatabaseUpgradeChecker.java
@@ -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() });
http://git-wip-us.apache.org/repos/asf/cloudstack/blob/91d448ff/engine/schema/src/com/cloud/upgrade/dao/Upgrade432to440.java
----------------------------------------------------------------------
diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade432to440.java b/engine/schema/src/com/cloud/upgrade/dao/Upgrade432to440.java
new file mode 100644
index 0000000..ded0db4
--- /dev/null
+++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade432to440.java
@@ -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;
+ }
+}