summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshizhendong <[email protected]>2023-08-28 15:47:12 +0800
committershizhendong <[email protected]>2023-08-28 15:47:12 +0800
commitedc5cfc7563560a8e974b5da3326ee57dfd34bc0 (patch)
tree47f9f6cdfc09bf2a4ba1b5874949bda437b10aaf
parent538f57efa1ee3b78bff3cc747a1130176dfda5ad (diff)
fix: NEZ-3111 alert_rule.receiver 类型由 varchar(64) 调整为 text
-rw-r--r--nz-admin/src/main/resources/db/V2023.08.10.1__modify alert_rule receiver colnum type to text.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/nz-admin/src/main/resources/db/V2023.08.10.1__modify alert_rule receiver colnum type to text.sql b/nz-admin/src/main/resources/db/V2023.08.10.1__modify alert_rule receiver colnum type to text.sql
new file mode 100644
index 00000000..fb3ff16b
--- /dev/null
+++ b/nz-admin/src/main/resources/db/V2023.08.10.1__modify alert_rule receiver colnum type to text.sql
@@ -0,0 +1,10 @@
+/**
+ * 1. modify alert_rule receiver colnum type to text.
+ * 2. modify int_alert_rule receiver colnum type to text.
+ */
+
+ALTER TABLE `alert_rule`
+MODIFY COLUMN IF EXISTS `receiver` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '通知用户';
+
+ALTER TABLE `int_alert_rule`
+MODIFY COLUMN IF EXISTS `receiver` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL DEFAULT '' COMMENT '通知用户';