-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use uuid in alertTemplate (#790)
- Loading branch information
Showing
17 changed files
with
173 additions
and
391 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...common-flyway/src/main/resources/db/migration/V29__240129_CREATE_alert_template_TABLE.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/* | ||
* Copyright 2022 Holoinsight Project Authors. Licensed under Apache-2.0. | ||
*/ | ||
|
||
-- ---------------------------- | ||
-- Table structure for alert_template | ||
-- ---------------------------- | ||
CREATE TABLE `alert_template` ( | ||
`uuid` varchar(100) NOT NULL comment '主键', | ||
`gmt_create` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP comment '创建时间', | ||
`gmt_modified` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP comment '修改时间', | ||
`template_name` varchar(255) NULL comment '模板名称', | ||
`description` varchar(255) DEFAULT NULL COMMENT '模板描述信息', | ||
`scene_type` varchar(255) NULL comment '场景类型:server、miniapp、iot', | ||
`be_default` tinyint(4) NULL comment '是否为默认模板', | ||
`channel_type` varchar(255) NULL comment '发送渠道:dingtalk、sms', | ||
`template_config` mediumtext NULL comment '模板配置', | ||
`tenant` varchar(255) NULL comment '租户', | ||
`workspace` varchar(255) NULL comment '工作空间', | ||
`creator` varchar(255) NULL comment '创建者', | ||
`modifier` varchar(255) NULL comment '修改者', | ||
PRIMARY KEY(`uuid`) | ||
) DEFAULT CHARSET = utf8mb4 COMMENT = '告警模板'; |
9 changes: 9 additions & 0 deletions
9
...nsion-common-flyway/src/main/resources/db/migration/V30__240129_ADD_user_oplog_COLUMN.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* Copyright 2022 Holoinsight Project Authors. Licensed under Apache-2.0. | ||
*/ | ||
|
||
-- ---------------------------- | ||
-- Table structure for user_oplog | ||
-- ---------------------------- | ||
ALTER TABLE `user_oplog` | ||
ADD COLUMN `table_entity_uuid` varchar(100) DEFAULT NULL COMMENT 'Oplog relate table unique uuid'; |
9 changes: 9 additions & 0 deletions
9
...nsion-common-flyway/src/main/resources/db/migration/V31__240129_ADD_alarm_rule_COLUMN.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* | ||
* Copyright 2022 Holoinsight Project Authors. Licensed under Apache-2.0. | ||
*/ | ||
|
||
-- ---------------------------- | ||
-- Table structure for alarm_rule | ||
-- ---------------------------- | ||
ALTER TABLE `alarm_rule` | ||
ADD COLUMN `alert_template_uuid` varchar(100) NULL DEFAULT NULL comment '告警模板UUID'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.