From 6acc133a480e501b67519c58bbffb54c1e186623 Mon Sep 17 00:00:00 2001 From: yuemian <--list> Date: Fri, 30 Aug 2024 11:25:47 +0800 Subject: [PATCH] ci_cmdb_config init sql --- bocloud.ams.booter/src/main/database/add.sql | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 bocloud.ams.booter/src/main/database/add.sql diff --git a/bocloud.ams.booter/src/main/database/add.sql b/bocloud.ams.booter/src/main/database/add.sql new file mode 100644 index 0000000..bf7fcde --- /dev/null +++ b/bocloud.ams.booter/src/main/database/add.sql @@ -0,0 +1,12 @@ +INSERT INTO ams.ci_cmdb_config +(code, name, value, remark, category, subclass, `type`, config, gmt_create, gmt_modify, mender_id, creator_id) +VALUES('CmdbOperationalAuditDataBakSwitch', '操作审计备份开关', 'false', '当操作审计数据量大时,通过开启备份按指定备份周期进行数据备份归档以提高数据查询性能', 'CMDB配置', '数据备份配置', 'SWITCH', '{}', '2023-10-10 10:00:00', '2023-10-10 10:00:00', 1, 1); +INSERT INTO ams.ci_cmdb_config +(code, name, value, remark, category, subclass, `type`, config, gmt_create, gmt_modify, mender_id, creator_id) +VALUES('CmdbOperationalAuditDataBakDaysAgo', '操作审计备份时间', '5', '需开启操作审计备份后管理员可指定备份周期,平台将以配置的备份周期对数据进行备份归档,单位:天', 'CMDB配置', '数据备份配置', 'NUMBER', '{}', '2023-10-10 10:00:00', '2023-10-10 10:00:00', 1, 1); +INSERT INTO ams.ci_cmdb_config +(code, name, value, remark, category, subclass, `type`, config, gmt_create, gmt_modify, mender_id, creator_id) +VALUES('CmdbCollectionTaskInstanceDataBakSwitch', '采集历史备份开关', 'false', '当采集历史数据量大时,通过开启备份按指定备份周期进行数据备份归档以提高数据查询性能', 'CMDB配置', '数据备份配置', 'SWITCH', '{}', '2023-10-10 10:00:00', '2023-10-10 10:00:00', 1, 1); +INSERT INTO ams.ci_cmdb_config +(code, name, value, remark, category, subclass, `type`, config, gmt_create, gmt_modify, mender_id, creator_id) +VALUES('CmdbCollectionTaskInstanceDataBakDaysAgo', '采集历史备份时间', '5', '需开启采集历史备份后管理员可指定备份周期,平台将以配置的备份周期对数据进行备份归档,单位:天', 'CMDB配置', '数据备份配置', 'NUMBER', '{}', '2023-10-10 10:00:00', '2023-10-10 10:00:00', 1, 1); \ No newline at end of file