Skip to content

Commit ddfd74d

Browse files
committed
CLOUDSTACK-3608 removing duplicate entries, IDs not saved anywhere else hence safe to remove
1 parent 84e44a4 commit ddfd74d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

setup/db/db/schema-441to450.sql

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -749,3 +749,5 @@ INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (uuid,hypervisor_type, hypervis
749749

750750
INSERT IGNORE INTO `cloud`.`hypervisor_capabilities`(uuid, hypervisor_type, hypervisor_version, max_guests_limit, security_group_enabled, max_data_volumes_limit, storage_motion_supported) VALUES (UUID(), 'XenServer', '6.5.0', 500, 1, 13, 1);
751751

752+
--Remove duplicates from guest_os_hypervisor table
753+
DELETE t1 FROM guest_os_hypervisor t1, guest_os_hypervisor t2 WHERE (t1.hypervisor_type = t2.hypervisor_type AND t1.hypervisor_version = t2.hypervisor_version AND t1.guest_os_id = t2.guest_os_id AND t1.id > t2.id AND t1.is_user_defined=0);

0 commit comments

Comments
 (0)