sql: 告警事件表语句,移除无用表字段更新

This commit is contained in:
TsMask
2024-09-21 11:38:42 +08:00
parent 21f9d6d458
commit 3e7bd7b415
3 changed files with 105 additions and 125 deletions

View File

@@ -1,10 +1,5 @@
DROP TRIGGER IF EXISTS `tg_account_menu`;
ALTER TABLE `gold_kpi`
MODIFY COLUMN `value` bigint NULL DEFAULT 0 AFTER `kpi_id`;
ALTER TABLE `ne_link` DROP INDEX IF EXISTS `idx_netype_neid`;
ALTER TABLE `nbi_operation_log`
MODIFY COLUMN `created_at` datetime NULL DEFAULT NULL AFTER `log_time`;
@@ -23,21 +18,6 @@ ALTER TABLE `measure_task`
ADD COLUMN IF NOT EXISTS `account_id` varchar(32) NULL AFTER `status`,
ADD COLUMN IF NOT EXISTS `comment` varchar(255) NULL AFTER `account_id`;
ALTER TABLE `trace_task`
ADD COLUMN IF NOT EXISTS `account_id` varchar(32) NULL AFTER `status`,
ADD COLUMN IF NOT EXISTS `comment` varchar(255) NULL AFTER `account_id`;
DELETE FROM trace_data WHERE timestamp LIKE '2023-%';
ALTER TABLE `trace_data`
MODIFY COLUMN `timestamp` bigint NULL DEFAULT NULL AFTER `msg_direct`;
ALTER TABLE `trace_data`
ADD COLUMN IF NOT EXISTS `length` int NULL AFTER `msg_direct`;
ALTER TABLE `ne_backup`
ADD
COLUMN IF NOT EXISTS `comment` varchar(255) NULL AFTER `md5_sum`;
ALTER TABLE `mml_command`
ADD
COLUMN IF NOT EXISTS `status` enum('Active', 'Inactive') CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'Active' COMMENT '激活: Active 未激活: Inactive' AFTER `param_json`;