mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
修复初始化新增字段
This commit is contained in:
1 parent
3c3fce0a5a
commit
56132ceb8b
1 file changed
+4
-1
+4
-1
@@ -22,9 +22,12 @@ export default async () => {
|
||||
await SubscriptionModel.sync();
|
||||
await CrontabViewModel.sync();
|
||||
|
||||
// 初始化新增字段
|
||||
try {
|
||||
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 CrontabViews add column filterRelation VARCHAR(255)')
|
||||
} catch (error) {}
|
||||
|
||||
// 2.10-2.11 升级
|
||||
|
||||
Reference in new issue
Block a user