From 1803ad40aea305c8146f5436e68cfa599e1d4d1c Mon Sep 17 00:00:00 2001 From: Stephane Benayoun Date: Wed, 17 Jan 2024 13:08:15 +0200 Subject: [PATCH] fix: change datatypes of scopes to TEXT (#11) --- packages/bolt-sequelize/src/SlackAppInstallation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bolt-sequelize/src/SlackAppInstallation.ts b/packages/bolt-sequelize/src/SlackAppInstallation.ts index 7af7c72..d2d4902 100644 --- a/packages/bolt-sequelize/src/SlackAppInstallation.ts +++ b/packages/bolt-sequelize/src/SlackAppInstallation.ts @@ -73,12 +73,12 @@ export default class SlackAppInstallation extends Model { botToken: { type: DataTypes.STRING, allowNull: true }, botId: { type: DataTypes.STRING, allowNull: true }, botUserId: { type: DataTypes.STRING, allowNull: true }, - botScopes: { type: DataTypes.STRING, allowNull: true }, + botScopes: { type: DataTypes.TEXT('medium'), allowNull: true }, botRefreshToken: { type: DataTypes.STRING, allowNull: true }, botTokenExpiresAt: { type: DataTypes.DATE, allowNull: true }, userId: { type: DataTypes.STRING, allowNull: false }, userToken: { type: DataTypes.STRING, allowNull: true }, - userScopes: { type: DataTypes.STRING, allowNull: true }, + userScopes: { type: DataTypes.TEXT('medium'), allowNull: true }, userRefreshToken: { type: DataTypes.STRING, allowNull: true }, userTokenExpiresAt: { type: DataTypes.DATE, allowNull: true }, incomingWebhookUrl: { type: DataTypes.STRING, allowNull: true },