Skip to content

Commit dc75a52

Browse files
author
chao.he
committed
<fix>[zwatch]: add hidden column to AlarmVO/EventSubscriptionVO
Add hidden columns to V5.5.12__schema.sql: CALL ADD_COLUMN for AlarmVO.hidden and EventSubscriptionVO.hidden (TINYINT(1) default 0) to support DB-level soft-hide of AI system alarms when AI license is absent. Resolves: ZSTAC-83966 Change-Id: Ic660df81e306f8cb64348289604810c27dd63ae0
1 parent 55c1e4b commit dc75a52

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

conf/db/upgrade/V5.5.12__schema.sql

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,7 @@ INSERT IGNORE INTO `ActiveAlarmTemplateVO` (`uuid`,`alarmName`,`comparisonOperat
186186

187187
-- ZSTAC-74908: Add resourceType to TagPatternVO to scope AI model tags away from VM pages
188188
CALL ADD_COLUMN('TagPatternVO', 'resourceType', 'VARCHAR(128)', 1, NULL);
189+
190+
-- ZSTAC-83966: Add hidden field to AlarmVO and EventSubscriptionVO for soft-hide support
191+
CALL ADD_COLUMN('AlarmVO', 'hidden', 'TINYINT(1)', 0, '0');
192+
CALL ADD_COLUMN('EventSubscriptionVO', 'hidden', 'TINYINT(1)', 0, '0');

conf/db/upgrade/V5.5.13__schema.sql

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)