Skip to content

Commit d10a7cd

Browse files
spark404sudison
authored andcommitted
Add a proper contraint to the nicira nic map
1 parent 56af599 commit d10a7cd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎setup/db/create-index-fk.sql‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,5 @@ ALTER TABLE `cloud`.`ssh_keypairs` ADD CONSTRAINT `fk_ssh_keypairs__account_id`
9393
ALTER TABLE `cloud`.`ssh_keypairs` ADD CONSTRAINT `fk_ssh_keypairs__domain_id` FOREIGN KEY `fk_ssh_keypair__domain_id` (`domain_id`) REFERENCES `domain` (`id`) ON DELETE CASCADE;
9494

9595
ALTER TABLE `cloud`.`usage_event` ADD INDEX `i_usage_event__created`(`created`);
96+
97+
ALTER TABLE `cloud`.`nicira_nvp_nic_map` ADD CONSTRAINT `fk_nicira_nvp_nic_map__nic` FOREIGN KEY `fk_nicira_nvp_nic_map__nic` (`nic`) REFERENCES `nics` (`uuid`) ON DELETE CASCADE;

0 commit comments

Comments
 (0)