mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
任务视图增加系统视图
This commit is contained in:
1 parent
799cda1e3e
commit
1446e925ec
7 files changed
+58
-16
No files matched your search
+10
-3
@@ -10,7 +10,7 @@ import { fileExist } from '../config/util';
|
||||
import { SubscriptionModel } from '../data/subscription';
|
||||
import { CrontabViewModel } from '../data/cronView';
|
||||
import config from '../config';
|
||||
import { sequelize } from '../data'
|
||||
import { sequelize } from '../data';
|
||||
|
||||
export default async () => {
|
||||
try {
|
||||
@@ -24,10 +24,17 @@ export default async () => {
|
||||
|
||||
// 初始化新增字段
|
||||
try {
|
||||
await sequelize.query('alter table CrontabViews add column filterRelation VARCHAR(255)')
|
||||
await sequelize.query(
|
||||
'alter table CrontabViews add column filterRelation VARCHAR(255)',
|
||||
);
|
||||
} catch (error) {}
|
||||
try {
|
||||
await sequelize.query('alter table Subscriptions add column proxy VARCHAR(255)')
|
||||
await sequelize.query(
|
||||
'alter table Subscriptions add column proxy VARCHAR(255)',
|
||||
);
|
||||
} catch (error) {}
|
||||
try {
|
||||
await sequelize.query('alter table CrontabViews add column type NUMBER');
|
||||
} catch (error) {}
|
||||
|
||||
// 2.10-2.11 升级
|
||||
|
||||
Reference in new issue
Block a user