weizhouapache commented on a change in pull request #5565:
URL: https://github.com/apache/cloudstack/pull/5565#discussion_r726069844



##########
File path: 
engine/schema/src/main/resources/META-INF/db/schema-41520to41600-cleanup.sql
##########
@@ -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;
\ No newline at end of file
+ALTER TABLE `cloud`.`ssh_keypairs` ADD CONSTRAINT `uc_ssh_keypairs__uuid` 
UNIQUE (`uuid`);

Review comment:
       agree with @sureshanaparti .
   
   another option is, do all changes in SQL and remove the java method. 
   @rhtyd @davidjumani 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to