From 79cdcf8d7d9970654689b6ccfbb1af182ea02a49 Mon Sep 17 00:00:00 2001 From: Abhinandan Prateek Date: Tue, 3 Mar 2015 01:45:48 -0500 Subject: [PATCH] CLOUDSTACK-8265: added foreign key constriant on guest os id --- setup/db/db/schema-442to450.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/db/db/schema-442to450.sql b/setup/db/db/schema-442to450.sql index a1d9b0ed7c8..4a8f2507d7e 100644 --- a/setup/db/db/schema-442to450.sql +++ b/setup/db/db/schema-442to450.sql @@ -1024,3 +1024,4 @@ INSERT IGNORE INTO `cloud`.`configuration` (`category`, `instance`, `component`, UPDATE `cloud`.`configuration` SET description='Uuid of the service offering used by secondary storage; if NULL - system offering will be used' where name='secstorage.service.offering'; +ALTER TABLE `cloud`.`guest_os_hypervisor` ADD FOREIGN KEY (`guest_os_id`) REFERENCES `cloud`.`guest_os`(`id`);