From 128e069d932123af6cfabcfb84e95d3097059afe Mon Sep 17 00:00:00 2001 From: JounQin Date: Sat, 4 Jun 2022 21:00:56 +0800 Subject: [PATCH] fix: `schedule` and `interval_schedule` issue The two columns should not be `UNIQUE` --- back/data/subscription.ts | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/back/data/subscription.ts b/back/data/subscription.ts index a3877033..97c50ea4 100644 --- a/back/data/subscription.ts +++ b/back/data/subscription.ts @@ -78,14 +78,8 @@ export const SubscriptionModel = sequelize.define( unique: 'compositeIndex', type: DataTypes.STRING, }, - schedule: { - unique: 'compositeIndex', - type: DataTypes.STRING, - }, - interval_schedule: { - unique: 'compositeIndex', - type: DataTypes.JSON, - }, + schedule: DataTypes.STRING, + interval_schedule: DataTypes.JSON, type: DataTypes.STRING, whitelist: DataTypes.STRING, blacklist: DataTypes.STRING,