Return-Path: X-Original-To: apmail-cloudstack-commits-archive@www.apache.org Delivered-To: apmail-cloudstack-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3EBFC11B9C for ; Thu, 4 Sep 2014 17:07:27 +0000 (UTC) Received: (qmail 74885 invoked by uid 500); 4 Sep 2014 17:07:27 -0000 Delivered-To: apmail-cloudstack-commits-archive@cloudstack.apache.org Received: (qmail 74839 invoked by uid 500); 4 Sep 2014 17:07:27 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 74826 invoked by uid 99); 4 Sep 2014 17:07:27 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2014 17:07:27 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A865BA0827B; Thu, 4 Sep 2014 17:07:26 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: bhaisaab@apache.org To: commits@cloudstack.apache.org Date: Thu, 04 Sep 2014 17:07:27 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [2/3] git commit: updated refs/heads/hotfix/4.4/upgradepath-431to441 to e57f17a schema: add Upgrade431to440 that extends 430to440 This adds an upgrade path from 4.3.1 to 4.4.0, the implementation of which simply extends the Upgrade430to440 as there was no schema change between 4.3.0 and 4.3.1 Signed-off-by: Rohit Yadav Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/4a4f167a Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/4a4f167a Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/4a4f167a Branch: refs/heads/hotfix/4.4/upgradepath-431to441 Commit: 4a4f167adf00f2af9fe75256e28ae0216cbc14ea Parents: 9d3b886 Author: Rohit Yadav Authored: Thu Sep 4 18:50:17 2014 +0200 Committer: Rohit Yadav Committed: Thu Sep 4 19:05:45 2014 +0200 ---------------------------------------------------------------------- .../com/cloud/upgrade/dao/Upgrade431to440.java | 39 ++++++++++++++++++++ 1 file changed, 39 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/4a4f167a/engine/schema/src/com/cloud/upgrade/dao/Upgrade431to440.java ---------------------------------------------------------------------- diff --git a/engine/schema/src/com/cloud/upgrade/dao/Upgrade431to440.java b/engine/schema/src/com/cloud/upgrade/dao/Upgrade431to440.java new file mode 100644 index 0000000..98b52ac --- /dev/null +++ b/engine/schema/src/com/cloud/upgrade/dao/Upgrade431to440.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 Upgrade431to440 extends Upgrade430to440 implements DbUpgrade { + final static Logger s_logger = Logger.getLogger(Upgrade431to440.class); + + @Override + public String[] getUpgradableVersionRange() { + return new String[] {"4.3.1", "4.4.0"}; + } + + @Override + public String getUpgradedVersion() { + return "4.4.0"; + } + + @Override + public boolean supportsRollingUpgrade() { + return false; + } +}