CS-15470: Remove UNIQUE keyword for some fields

User can create/delete/create gateway again and again, then it would no longer
be unique. The unique should be guaranteed by API level.
This commit is contained in:
Sheng Yang 2012-07-06 11:17:45 -07:00
parent 5a5117b744
commit 6f7a7c5e3e
1 changed files with 2 additions and 2 deletions

View File

@ -2137,7 +2137,7 @@ CREATE TABLE `cloud`.`port_profile` (
CREATE TABLE `cloud`.`s2s_vpn_gateway` (
`id` bigint unsigned NOT NULL auto_increment COMMENT 'id',
`uuid` varchar(40),
`addr_id` bigint unsigned UNIQUE NOT NULL,
`addr_id` bigint unsigned NOT NULL,
`removed` datetime COMMENT 'date removed if not null',
PRIMARY KEY (`id`),
CONSTRAINT `fk_s2s_vpn_gateway__addr_id` FOREIGN KEY (`addr_id`) REFERENCES `user_ip_address` (`id`) ON DELETE CASCADE,
@ -2147,7 +2147,7 @@ CREATE TABLE `cloud`.`s2s_vpn_gateway` (
CREATE TABLE `cloud`.`s2s_customer_gateway` (
`id` bigint unsigned NOT NULL auto_increment COMMENT 'id',
`uuid` varchar(40),
`gateway_ip` char(40) UNIQUE NOT NULL,
`gateway_ip` char(40) NOT NULL,
`guest_cidr_list` varchar(200) NOT NULL,
`ipsec_psk` varchar(256),
`ike_policy` varchar(30) NOT NULL,