fix: delete trace_data invalid timestamp

This commit is contained in:
2023-10-24 10:30:41 +08:00
parent 1ffbd335dd
commit a1108c0fbe
2 changed files with 2 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ MODIFY COLUMN `id` int(10) NOT NULL AUTO_INCREMENT FIRST;
ALTER TABLE `omc_db`.`param_config`
ADD COLUMN IF NOT EXISTS `method` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '*' COMMENT 'method allow: \"get\", \"get,post,put\", \"*\"' AFTER `top_display`;
DELETE FROM trace_data WHERE timestamp LIKE '2023-%';
ALTER TABLE `omc_db`.`trace_data`
MODIFY COLUMN `timestamp` bigint NULL DEFAULT NULL AFTER `msg_direct`;

View File

@@ -80,6 +80,7 @@ MODIFY COLUMN `id` int(10) NOT NULL AUTO_INCREMENT FIRST;
ALTER TABLE `omc_db`.`param_config`
ADD COLUMN IF NOT EXISTS `method` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '*' COMMENT 'method allow: \"get\", \"get,post,put\", \"*\"' AFTER `top_display`;
DELETE FROM trace_data WHERE timestamp LIKE '2023-%';
ALTER TABLE `omc_db`.`trace_data`
MODIFY COLUMN `timestamp` bigint NULL DEFAULT NULL AFTER `msg_direct`;