fix: schedule and interval_schedule issue

The two columns should not be `UNIQUE`
This commit is contained in:
JounQin 2022-06-04 21:00:56 +08:00 committed by GitHub
parent 7f2d6d159c
commit 128e069d93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,14 +78,8 @@ export const SubscriptionModel = sequelize.define<SubscriptionInstance>(
unique: 'compositeIndex', unique: 'compositeIndex',
type: DataTypes.STRING, type: DataTypes.STRING,
}, },
schedule: { schedule: DataTypes.STRING,
unique: 'compositeIndex', interval_schedule: DataTypes.JSON,
type: DataTypes.STRING,
},
interval_schedule: {
unique: 'compositeIndex',
type: DataTypes.JSON,
},
type: DataTypes.STRING, type: DataTypes.STRING,
whitelist: DataTypes.STRING, whitelist: DataTypes.STRING,
blacklist: DataTypes.STRING, blacklist: DataTypes.STRING,