Skip to content

Commit

Permalink
新增同步结构和数据监听,开发环境默认开启同步更新数据,生产环境默认关闭
Browse files Browse the repository at this point in the history
更新表全字段初始化数据,避免开启更新数据操作时修改数据不全面的问题
  • Loading branch information
zhontai committed Mar 14, 2023
1 parent 0c25956 commit 2555b1a
Show file tree
Hide file tree
Showing 26 changed files with 5,620 additions and 879 deletions.
4 changes: 3 additions & 1 deletion src/hosts/ZhonTai.Host/Configs/dbconfig.Development.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@
//监听所有操作
"monitorCommand": false,
//监听Curd操作
"curd": true
"curd": true,
//同步更新数据
"sysUpdateData": true
}
8 changes: 6 additions & 2 deletions src/hosts/ZhonTai.Host/Configs/dbconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"monitorCommand": false,
//监听Curd操作
"curd": true,
//监听同步结构脚本
"syncStructureSql": false,
//监听同步数据Curd操作
"syncDataCurd": false,

//建库,Sqlite数据库不用配置建库,连接语句自动建库
"createDb": false,
Expand All @@ -28,8 +32,8 @@
"syncStructure": true,
//同步数据,只新增数据不修改数据,想要修改数据需开启sysUpdateData
"syncData": true,
//同步更新数据
"sysUpdateData": true,
//同步更新数据,注意生产环境谨慎开启,确定要修改表数据是最新数据再开启。如不想更新某些表的数据,可以先删除对应表的data.json,再执行数据更新操作
"sysUpdateData": false,
//同步数据地址
//"SyncDataPath": "InitData/Admin/Vue2",

Expand Down
Loading

0 comments on commit 2555b1a

Please sign in to comment.