mirror of https://github.com/apache/cloudstack.git
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:
parent
5a5117b744
commit
6f7a7c5e3e
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue