Skip to content

Commit 6bb9ab9

Browse files
committed
Update schema to use idempotent add column
1 parent 6e7538b commit 6bb9ab9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

engine/schema/src/main/resources/META-INF/db/schema-41910to42000.sql

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -426,8 +426,5 @@ INSERT IGNORE INTO `cloud`.`guest_os_hypervisor` (uuid, hypervisor_type, hypervi
426426
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.vm_instance', 'delete_protection', 'boolean DEFAULT FALSE COMMENT "delete protection for vm" ');
427427
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.volumes', 'delete_protection', 'boolean DEFAULT FALSE COMMENT "delete protection for volumes" ');
428428

429-
ALTER TABLE `cloud`.`user`
430-
ADD COLUMN `api_key_access` boolean;
431-
432-
ALTER TABLE `cloud`.`account`
433-
ADD COLUMN `api_key_access` boolean;
429+
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.user', 'api_key_access', 'boolean DEFAULT NULL COMMENT "is api key access allowed for the user" AFTER `secret_key`');
430+
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.account', 'api_key_access', 'boolean DEFAULT NULL COMMENT "is api key access allowed for the account" ');

0 commit comments

Comments
 (0)