diff --git a/packages/backend/src/models/entities/Notification.ts b/packages/backend/src/models/entities/Notification.ts index 0a2e9c2412f4..43c25e284cfa 100644 --- a/packages/backend/src/models/entities/Notification.ts +++ b/packages/backend/src/models/entities/Notification.ts @@ -65,8 +65,8 @@ export class Notification { * app - アプリ通知 */ @Index() - @Column('enum', { - enum: notificationTypes, + @Column('varchar', { + length: 64, comment: 'The type of the Notification.', }) public type: typeof notificationTypes[number]; diff --git a/packages/backend/src/models/entities/UserProfile.ts b/packages/backend/src/models/entities/UserProfile.ts index 60c1c55de5d3..bc655aa57bb1 100644 --- a/packages/backend/src/models/entities/UserProfile.ts +++ b/packages/backend/src/models/entities/UserProfile.ts @@ -201,13 +201,7 @@ export class UserProfile { }) public mutedInstances: string[]; - @Column('enum', { - enum: [ - ...notificationTypes, - // マイグレーションで削除が困難なので古いenumは残しておく - ...obsoleteNotificationTypes, - ], - array: true, + @Column('jsonb', { default: [], }) public mutingNotificationTypes: typeof notificationTypes[number][];