Commit 1e260b27 authored by Liu lu's avatar Liu lu

日志批处理

parent bd1dd5bb
...@@ -38,10 +38,14 @@ class LogTraceQueue extends RedisQueueBatchHandler ...@@ -38,10 +38,14 @@ class LogTraceQueue extends RedisQueueBatchHandler
UNIQUE KEY `request_id` (`request_id`) UNIQUE KEY `request_id` (`request_id`)
) ENGINE=InnoDB AUTO_INCREMENT=5950 DEFAULT CHARSET=utf8mb4; ) ENGINE=InnoDB AUTO_INCREMENT=5950 DEFAULT CHARSET=utf8mb4;
"); ");
Db::update(" try {
ALTER TABLE `trace_logs` Db::update("
ADD COLUMN `user_name` varchar(6) NOT NULL DEFAULT '' COMMENT '用户名' AFTER `process_info`; ALTER TABLE `trace_logs`
"); ADD COLUMN `user_name` varchar(6) NOT NULL DEFAULT '' COMMENT '用户名' AFTER `process_info`;
");
}catch (\Throwable $exception){
}
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment