😎由于定时任务更新不起作用则启动时先删除
This commit is contained in:
parent
9be596dbfd
commit
2a29cec680
@ -373,6 +373,10 @@ public static class SqlSugarSetup
|
|||||||
|
|
||||||
// 初始化文本简称表数据
|
// 初始化文本简称表数据
|
||||||
if (config.ConfigId.ToString() == SqlSugarConst.MainConfigId) dbProvider.InitTextAbbData();
|
if (config.ConfigId.ToString() == SqlSugarConst.MainConfigId) dbProvider.InitTextAbbData();
|
||||||
|
|
||||||
|
// 由于修改定时任务后数据库无法更新,先清空定时任务数据
|
||||||
|
dbProvider.DbMaintenance.TruncateTable(nameof(SysJobDetail));
|
||||||
|
dbProvider.DbMaintenance.TruncateTable(nameof(SysJobTrigger));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user