Skip to content

Commit a45a4a5

Browse files
authored
upgrade a backported patch (#6728)
This PR tries to fix a problem with a privately backported feature. The columns added for the feature are not added idem potent so people can not backport them. I propose that all DB alteration from here on in will be done with the IDEM_POTENT_...() set of stored procedures that we have to prevent these kind of issues for users.
1 parent 20950e0 commit a45a4a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

engine/schema/src/main/resources/META-INF/db/schema-41610to41700.sql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -887,9 +887,8 @@ left join `cloud`.`mshost_status` on
887887
((`cloud`.`mshost`.`uuid` = `cloud`.`mshost_status`.`ms_id`)));
888888

889889
-- Alter event table to add resource_id and resource_type
890-
ALTER TABLE `cloud`.`event`
891-
ADD COLUMN `resource_id` bigint unsigned COMMENT 'ID of the resource associated with the event' AFTER `domain_id`,
892-
ADD COLUMN `resource_type` varchar(32) COMMENT 'Type of the resource associated with the event' AFTER `resource_id`;
890+
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.event','resource_id', 'bigint unsigned COMMENT "ID of the resource associated with the event" AFTER `domain_id`');
891+
CALL `cloud`.`IDEMPOTENT_ADD_COLUMN`('cloud.event','resource_type', 'VARCHAR(32) COMMENT "Type of the resource associated with the event" AFTER `resource_id`');
893892

894893
DROP VIEW IF EXISTS `cloud`.`event_view`;
895894
CREATE VIEW `cloud`.`event_view` AS

0 commit comments

Comments
 (0)