mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
engine/schema: add unique constraint for sshkeys UUID column (#5565)
This adds unique constraints much like other tables, instead of using query that maybe incompatible with older 5.x mysql servers. Fixes #5564 Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
4ed916d639
commit
ad8f3750c9
@ -19,4 +19,4 @@
|
||||
-- Schema upgrade cleanup from 4.15.2.0 to 4.16.0.0
|
||||
--;
|
||||
|
||||
ALTER TABLE `cloud`.`ssh_keypairs` MODIFY COLUMN `uuid` varchar(40) NOT NULL UNIQUE;
|
||||
ALTER TABLE `cloud`.`ssh_keypairs` ADD CONSTRAINT `uc_ssh_keypairs__uuid` UNIQUE (`uuid`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user