From 932476488bd425300cf0474de99b1f710b06c85f Mon Sep 17 00:00:00 2001 From: Amogh Vasekar Date: Fri, 2 Aug 2013 15:39:45 -0700 Subject: [PATCH] CLOUDSTACK-3647: Remove duplicate row Reviewed-by: Alena Prokharchyk --- setup/db/db/schema-410to420.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/setup/db/db/schema-410to420.sql b/setup/db/db/schema-410to420.sql index b2fe2eded12..0f986932f17 100644 --- a/setup/db/db/schema-410to420.sql +++ b/setup/db/db/schema-410to420.sql @@ -284,6 +284,12 @@ INSERT IGNORE INTO `cloud`.`guest_os` (id, uuid, category_id, display_name) VALU INSERT IGNORE INTO `cloud`.`guest_os` (id, uuid, category_id, display_name) VALUES (167, UUID(), 6, 'Windows Server 2012 (64-bit)'); INSERT IGNORE INTO `cloud`.`guest_os` (id, uuid, category_id, display_name) VALUES (168, UUID(), 6, 'Windows Server 8 (64-bit)'); +# clean up row added in 3.0.6. +UPDATE `cloud`.`guest_os_hypervisor` set guest_os_id = 166 where guest_os_id = 206; +UPDATE `cloud`.`vm_template` set guest_os_id = 166 where guest_os_id = 206; +UPDATE `cloud`.`vm_instance` set guest_os_id = 166 where guest_os_id = 206; +DELETE IGNORE FROM `cloud`.`guest_os` where id=206; + INSERT IGNORE INTO `cloud`.`guest_os` (id, uuid, category_id, display_name) VALUES (169, UUID(), 10, 'Ubuntu 11.04 (32-bit)'); INSERT IGNORE INTO `cloud`.`guest_os` (id, uuid, category_id, display_name) VALUES (170, UUID(), 10, 'Ubuntu 11.04 (64-bit)'); INSERT IGNORE INTO `cloud`.`guest_os` (id, uuid, category_id, display_name) VALUES (171, UUID(), 1, 'CentOS 6.3 (32-bit)');