修复初始化新增字段

This commit is contained in:
whyour 2022-11-15 12:14:33 +08:00
parent 3c3fce0a5a
commit 56132ceb8b

View File

@ -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 升级