summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshizhendong <[email protected]>2023-04-20 16:54:44 +0800
committershizhendong <[email protected]>2023-04-20 16:54:44 +0800
commit4bdc91640ea9afd0b5e8ef314c77fde213955435 (patch)
tree69392f89ed4f68c47e6c16512a41cc934499cfce
parentbd37ffd6b345c667912e807b0db98b15016ee8e2 (diff)
fix: NEZ-2790 当 sys_config 表不存在 date_format 配置时 插入默认值
-rw-r--r--nz-admin/src/main/resources/db/R__AZ_sys_config.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/nz-admin/src/main/resources/db/R__AZ_sys_config.sql b/nz-admin/src/main/resources/db/R__AZ_sys_config.sql
index 7f8d956b..3401a05c 100644
--- a/nz-admin/src/main/resources/db/R__AZ_sys_config.sql
+++ b/nz-admin/src/main/resources/db/R__AZ_sys_config.sql
@@ -85,4 +85,4 @@ REPLACE INTO `sys_config`(`id`, `param_key`, `param_value`, `status`, `remark`)
REPLACE INTO `sys_config`(`id`, `param_key`, `param_value`, `status`, `remark`) VALUES (null, 'talon_name', '{\"centos\":\"nz-talon-.*rpm\",\"ubuntu\":\"nz-talon-.*rpm\"}', 1, 'nz-talon 下载文件名称');
REPLACE INTO `sys_config`(`id`, `param_key`, `param_value`, `status`, `remark`) VALUES (null, 'asset_chart_tpl', '{\"name\":\"Asset information\",\"type\":\"assetInfo\",\"span\":12,\"height\":4,\"unit\":2}', 1, 'asset添加时,默认chart配置');
REPLACE INTO `sys_config`(`id`, `param_key`, `param_value`, `status`, `remark`) VALUES (null, 'endpoint_chart_tpl', '{\"name\":\"Endpoint information\",\"type\":\"endpointInfo\",\"span\":12,\"height\":4,\"unit\":2}', 1, 'endpoint添加时,默认chart配置');
-REPLACE INTO `sys_config`(`id`, `param_key`, `param_value`, `status`, `remark`) VALUES (null, 'date_format', 'YYYY-MM-DD HH:mm:ss', 1, '时间格式化');
+INSERT IGNORE INTO `sys_config`(`id`, `param_key`, `param_value`, `status`, `remark`) VALUES (null, 'date_format', 'YYYY-MM-DD HH:mm:ss', 1, '时间格式化');