订阅支持自动添加和删除任务设置

This commit is contained in:
whyour
2023-02-09 00:20:28 +08:00
parent 46c9774efa
commit 76fa82c3a7
7 changed files with 96 additions and 17 deletions
+10
View File
@@ -36,6 +36,16 @@ export default async () => {
try {
await sequelize.query('alter table CrontabViews add column type NUMBER');
} catch (error) {}
try {
await sequelize.query(
'alter table Subscriptions add column autoAddCron NUMBER',
);
} catch (error) {}
try {
await sequelize.query(
'alter table Subscriptions add column autoDelCron NUMBER',
);
} catch (error) {}
// 2.10-2.11 升级
const cronDbFile = path.join(config.rootPath, 'db/crontab.db');