mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 01:39:52 +08:00
定时任务增加运行任务前和运行任务后参数
This commit is contained in:
1 parent
8d899f1a53
commit
ab3fc9b5f1
11 files changed
+88
-36
No files matched your search
@@ -52,6 +52,12 @@ export default async () => {
|
||||
try {
|
||||
await sequelize.query('alter table Crontabs add column extra_schedules JSON');
|
||||
} catch (error) { }
|
||||
try {
|
||||
await sequelize.query('alter table Crontabs add column task_before TEXT');
|
||||
} catch (error) { }
|
||||
try {
|
||||
await sequelize.query('alter table Crontabs add column task_after TEXT');
|
||||
} catch (error) { }
|
||||
|
||||
// 2.10-2.11 升级
|
||||
const cronDbFile = path.join(config.rootPath, 'db/crontab.db');
|
||||
|
||||
Reference in new issue
Block a user