weizhouapache commented on code in PR #10223:
URL: https://github.com/apache/cloudstack/pull/10223#discussion_r1925433477


##########
engine/schema/src/main/resources/META-INF/db/schema-41910to41920.sql:
##########
@@ -22,5 +22,20 @@
 -- Add last_id to the volumes table
 CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.volumes', 'last_id', 'bigint(20) 
unsigned DEFAULT NULL');
 
-ALTER TABLE `cloud`.`counter` DROP KEY `uc_counter__provider__source__value`;
-CALL `cloud`.`IDEMPOTENT_ADD_UNIQUE_KEY`('cloud.counter', 
'uc_counter__provider__source__value_removed', '(provider, source, value, 
removed)');
+SELECT

Review Comment:
   @Pearl1594 
   maybe we can add a procedure similar as
   
   
https://github.com/apache/cloudstack/blob/main/engine/schema/src/main/resources/META-INF/db/procedures/cloud.idempotent_drop_foreign_key.sql



-- 
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