Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 66B34ECF7 for ; Mon, 11 Feb 2013 16:22:27 +0000 (UTC) Received: (qmail 35773 invoked by uid 500); 11 Feb 2013 16:22:27 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 35735 invoked by uid 500); 11 Feb 2013 16:22:26 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 35725 invoked by uid 99); 11 Feb 2013 16:22:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 16:22:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.66.90.41] (HELO sbprmx2.schubergphilis.com) (195.66.90.41) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2013 16:22:17 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by sbprmx2.schubergphilis.com (Postfix) with ESMTP id DF13D12D70 for ; Mon, 11 Feb 2013 17:21:56 +0100 (MET) X-Virus-Scanned: amavisd-new at schubergphilis.com Received: from sbprmx2.schubergphilis.com ([127.0.0.1]) by localhost (sbprmx2.schubergphilis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0bMpdF+PzitW for ; Mon, 11 Feb 2013 17:21:56 +0100 (MET) Received: from SBPOTMG101.sbp.lan (edge.schubergphilis.com [195.66.90.11]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by sbprmx2.schubergphilis.com (Postfix) with ESMTP id D134512D10; Mon, 11 Feb 2013 17:21:56 +0100 (MET) Received: from SBPOMF101.sbp.lan (10.71.2.130) by SBPOTMG101.sbp.lan (10.71.3.100) with Microsoft SMTP Server (TLS) id 14.1.379.0; Mon, 11 Feb 2013 17:21:56 +0100 Received: from SBPOMB402.sbp.lan ([fe80::2410:c2c8:67bf:d067]) by SBPOMF101.sbp.lan ([fe80::253f:3a21:d553:7947%15]) with mapi id 14.02.0318.001; Mon, 11 Feb 2013 17:21:56 +0100 From: Hugo Trippaers To: "cloudstack-dev@incubator.apache.org" , "'bhaisaab@apache.org'" Subject: FW: [1/2] git commit: refs/heads/4.1 - CLOUDSTACK-1226: Fix 4.1-new-db-schema.sql, use cloud before exec statements Thread-Topic: [1/2] git commit: refs/heads/4.1 - CLOUDSTACK-1226: Fix 4.1-new-db-schema.sql, use cloud before exec statements Thread-Index: AQHOCEjPC8vhKR778UK/xpVYx+VSG5h01oUQ Date: Mon, 11 Feb 2013 16:21:54 +0000 Message-ID: <6DE00C9FDF08A34683DF71786C70EBF02F6C1BBE@SBPOMB402.sbp.lan> References: <20130211111322.8E3553C794@tyr.zones.apache.org> In-Reply-To: <20130211111322.8E3553C794@tyr.zones.apache.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.71.96.47] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hey Rohit, I don't think this is the right solution, we should not depend on the name = of the database in the scripts themselves. All the other scripts use the pr= efix 'cloud.' to work around this. I would prefer it that way so admins can= change stuff without have to go through the database scripts, like reading= stuff into a test database. Cheers, Hugo > -----Original Message----- > From: bhaisaab@apache.org [mailto:bhaisaab@apache.org] > Sent: Monday, February 11, 2013 12:13 PM > To: cloudstack-commits@incubator.apache.org > Subject: [1/2] git commit: refs/heads/4.1 - CLOUDSTACK-1226: Fix 4.1-new- > db-schema.sql, use cloud before exec statements >=20 > CLOUDSTACK-1226: Fix 4.1-new-db-schema.sql, use cloud before exec > statements >=20 > Signed-off-by: Rohit Yadav >=20 >=20 > Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo > Commit: http://git-wip-us.apache.org/repos/asf/incubator- > cloudstack/commit/e3156a6e > Tree: http://git-wip-us.apache.org/repos/asf/incubator- > cloudstack/tree/e3156a6e > Diff: http://git-wip-us.apache.org/repos/asf/incubator- > cloudstack/diff/e3156a6e >=20 > Branch: refs/heads/4.1 > Commit: e3156a6e16cee9ffeb5d757dd8a775236127410f > Parents: a880f47 > Author: Rohit Yadav > Authored: Mon Feb 11 16:36:41 2013 +0530 > Committer: Rohit Yadav > Committed: Mon Feb 11 16:42:48 2013 +0530 >=20 > ---------------------------------------------------------------------- > setup/db/4.1-new-db-schema.sql | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > ---------------------------------------------------------------------- >=20 >=20 > http://git-wip-us.apache.org/repos/asf/incubator- > cloudstack/blob/e3156a6e/setup/db/4.1-new-db-schema.sql > ---------------------------------------------------------------------- > diff --git a/setup/db/4.1-new-db-schema.sql b/setup/db/4.1-new-db- > schema.sql index e8bafa2..d60eca2 100644 > --- a/setup/db/4.1-new-db-schema.sql > +++ b/setup/db/4.1-new-db-schema.sql > @@ -15,6 +15,8 @@ > -- specific language governing permissions and limitations > -- under the License. >=20 > +use cloud; > + > alter table vm_template add image_data_store_id bigint unsigned; alter > table vm_template add size bigint unsigned; alter table vm_template add > state varchar(255);