Return-Path: X-Original-To: apmail-cloudstack-dev-archive@www.apache.org Delivered-To: apmail-cloudstack-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C4E6E10FA0 for ; Thu, 13 Mar 2014 00:24:43 +0000 (UTC) Received: (qmail 46285 invoked by uid 500); 13 Mar 2014 00:24:42 -0000 Delivered-To: apmail-cloudstack-dev-archive@cloudstack.apache.org Received: (qmail 46244 invoked by uid 500); 13 Mar 2014 00:24:42 -0000 Mailing-List: contact dev-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 dev@cloudstack.apache.org Received: (qmail 46235 invoked by uid 99); 13 Mar 2014 00:24:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 00:24:42 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mike.tutkowski@solidfire.com designates 209.85.219.44 as permitted sender) Received: from [209.85.219.44] (HELO mail-oa0-f44.google.com) (209.85.219.44) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2014 00:24:38 +0000 Received: by mail-oa0-f44.google.com with SMTP id n16so301327oag.17 for ; Wed, 12 Mar 2014 17:24:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=hKfZYmNTemZ60v4n/kdxfQKHQ4TtzpSh8ve9NfCVKxc=; b=I0SCSnSGZ7of4nUS/9l27PPMmYMaUi7CncwHczN6ZuOoPfEtj/Yftn2QAM5yaUsEsi /uQq4evP31cOWpF7m8op189u0GXEHgz9gLRl2oSWQzi01R1JTSK+5L87jvrrpIjg/xSf /QjWdevJ+E3z0C2EdY/Wdpd/HUFpEHaS3B4C2cklc23hkaCjXvM51g7nBIX/6tIVl01G ND4um+CiSIasvCrG5zkYZc+KnW97UsYQ/rjtK+gtbnQ5BIRgbmH5i/KniQfnuxZi6HOD tOEWPlBzGPFt++xYd/7Z16t+JQ/JLiEJRevQtGnN/PSZn1KIhmBzEuRzRJO4dAV7Ixsv wBmQ== X-Gm-Message-State: ALoCoQljjGmP/o0HFAFcP6HxHNnWpC/XicAZnhYysllVFzmxb1MGUsOq8GcAqKCj1t+Y3B7qUyBO MIME-Version: 1.0 X-Received: by 10.182.129.201 with SMTP id ny9mr416748obb.0.1394670257030; Wed, 12 Mar 2014 17:24:17 -0700 (PDT) Received: by 10.182.114.164 with HTTP; Wed, 12 Mar 2014 17:24:16 -0700 (PDT) In-Reply-To: References: Date: Wed, 12 Mar 2014 18:24:16 -0600 Message-ID: Subject: Re: Just checked in a minor change to the DB From: Mike Tutkowski To: "dev@cloudstack.apache.org" Content-Type: multipart/alternative; boundary=089e015366b43fe09c04f471f9e7 X-Virus-Checked: Checked by ClamAV on apache.org --089e015366b43fe09c04f471f9e7 Content-Type: text/plain; charset=ISO-8859-1 Thanks for the notification! :) We decided (Daan suggested and I agreed) that [DB-CHANGE] can be used for these types of messages. Thanks! I'm guessing this will be a big week for schema changes. On Wed, Mar 12, 2014 at 6:17 PM, Amogh Vasekar wrote: > Hi All, > > (Since I am not sure yet if a tag has been agreed to, sending on this > thread instead) > I made a couple of changes to guest_os and guest_os_hypervisor tables, the > following should take care of schema changes after git pull: > > ===guest_os_hypervisor==== > ALTER TABLE `cloud`.`guest_os_hypervisor` ADD COLUMN `hypervisor_version` > varchar(32) NOT NULL DEFAULT 'default' COMMENT 'Hypervisor version for > this mapping'; > ALTER TABLE `cloud`.`guest_os_hypervisor` ADD COLUMN `uuid` varchar(40) > COMMENT 'UUID of the mapping'; > ALTER TABLE `cloud`.`guest_os_hypervisor` ADD CONSTRAINT > `uc_guest_os_hypervisor__uuid` UNIQUE (`uuid`); > ALTER TABLE `cloud`.`guest_os_hypervisor` ADD COLUMN `created` datetime > COMMENT 'Time when mapping was created'; > ALTER TABLE `cloud`.`guest_os_hypervisor` ADD COLUMN `removed` datetime > COMMENT 'Time when mapping was removed if deleted, else NULL'; > UPDATE `cloud`.`guest_os_hypervisor` SET `uuid` = UUID(); > UPDATE `cloud`.`guest_os_hypervisor` SET `created` = now(); > ========================== > > ===guest_os==== > > ALTER TABLE `cloud`.`guest_os` ADD COLUMN `created` datetime COMMENT 'Time > when Guest OS was created in system'; > ALTER TABLE `cloud`.`guest_os` ADD COLUMN `removed` datetime COMMENT 'Time > when Guest OS was removed if deleted, else NULL'; > UPDATE `cloud`.`guest_os` SET `created` = now(); > =============== > > > Thanks, > Amogh > > On 3/6/14 12:05 PM, "Mike Tutkowski" wrote: > > >Hi everyone, > > > >Just wanted to give you a heads up that I made a minor change to two views > >in the DB in 9b66866dc2085486f465159cbd446ac03e266a2c: > > > >service_offering_view and disk_offering_view > > > >I added some columns to these views so I could present additional info in > >the GUI. > > > >If you want to bring these two views up to date, just run the following > >SQL: > > > >DROP VIEW IF EXISTS `cloud`.`disk_offering_view`; > >CREATE VIEW `cloud`.`disk_offering_view` AS > > select > > disk_offering.id, > > disk_offering.uuid, > > disk_offering.name, > > disk_offering.display_text, > > disk_offering.disk_size, > > disk_offering.min_iops, > > disk_offering.max_iops, > > disk_offering.created, > > disk_offering.tags, > > disk_offering.customized, > > disk_offering.customized_iops, > > disk_offering.removed, > > disk_offering.use_local_storage, > > disk_offering.system_use, > > disk_offering.hv_ss_reserve, > > disk_offering.bytes_read_rate, > > disk_offering.bytes_write_rate, > > disk_offering.iops_read_rate, > > disk_offering.iops_write_rate, > > disk_offering.cache_mode, > > disk_offering.sort_key, > > disk_offering.type, > > disk_offering.display_offering, > > domain.id domain_id, > > domain.uuid domain_uuid, > > domain.name domain_name, > > domain.path domain_path > > from > > `cloud`.`disk_offering` > > left join > > `cloud`.`domain` ON disk_offering.domain_id = domain.id > > where > > disk_offering.state='ACTIVE'; > > > >DROP VIEW IF EXISTS `cloud`.`service_offering_view`; > >CREATE VIEW `cloud`.`service_offering_view` AS > > select > > service_offering.id, > > disk_offering.uuid, > > disk_offering.name, > > disk_offering.display_text, > > disk_offering.created, > > disk_offering.tags, > > disk_offering.removed, > > disk_offering.use_local_storage, > > disk_offering.system_use, > > disk_offering.customized_iops, > > disk_offering.min_iops, > > disk_offering.max_iops, > > disk_offering.hv_ss_reserve, > > disk_offering.bytes_read_rate, > > disk_offering.bytes_write_rate, > > disk_offering.iops_read_rate, > > disk_offering.iops_write_rate, > > disk_offering.cache_mode, > > service_offering.cpu, > > service_offering.speed, > > service_offering.ram_size, > > service_offering.nw_rate, > > service_offering.mc_rate, > > service_offering.ha_enabled, > > service_offering.limit_cpu_use, > > service_offering.host_tag, > > service_offering.default_use, > > service_offering.vm_type, > > service_offering.sort_key, > > service_offering.is_volatile, > > service_offering.deployment_planner, > > domain.id domain_id, > > domain.uuid domain_uuid, > > domain.name domain_name, > > domain.path domain_path > > from > > `cloud`.`service_offering` > > inner join > > `cloud`.`disk_offering` ON service_offering.id = disk_offering.id > > left join > > `cloud`.`domain` ON disk_offering.domain_id = domain.id > > where > > disk_offering.state='Active'; > > > >Thanks! > > > >-- > >*Mike Tutkowski* > >*Senior CloudStack Developer, SolidFire Inc.* > >e: mike.tutkowski@solidfire.com > >o: 303.746.7302 > >Advancing the way the world uses the > >cloud > >*(tm)* > > -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkowski@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud *(tm)* --089e015366b43fe09c04f471f9e7--