From 58fb97f76deab2da14a55aa7b6c8c31833cddfab Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Mon, 22 Jan 2024 16:18:05 +0800 Subject: [PATCH] * Update createdBy and createdDate field. --- db/update18.10.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/update18.10.sql b/db/update18.10.sql index bf04d0f854..bef52d85d7 100644 --- a/db/update18.10.sql +++ b/db/update18.10.sql @@ -5,3 +5,5 @@ ALTER table `zt_metric` ADD `lastCalcTime` datetime DEFAULT NULL AFTER `lastCalc INSERT INTO `zt_metric`(`purpose`, `scope`, `object`, `stage`, `type`, `name`, `code`, `unit`, `collector`, `desc`, `definition`, `when`, `createdBy`, `createdDate`, `builtin`, `deleted`, `dateType`) VALUES ('scale', 'system', 'execution', 'released', 'php', '按系统统计的年度完成执行数', 'count_of_annual_finished_execution', 'count', NULL, '按系统统计的年度完成执行数是指在某年度已经完成的执行数。该度量项反映了团队或组织在某年的工作效率和完成能力。较高的年度完成执行数表示团队或组织在完成任务方面表现出较高的效率,反之则可能需要审查工作流程和资源分配情况,以提高执行效率。', '所有的执行个数求和\r\n实际完成日期为某年\r\n过滤已删除的执行', 'realtime', 'system', '2023-08-22 08:00:00', '1', '0', 'year'); +UPDATE `zt_metric` SET `createdBy` = 'system' WHERE `createdBy` = ''; +UPDATE `zt_metric` SET `createdDate` = '2023-08-22 08:00:00' WHERE `createdDate` IS NULL;