Skip to content

Commit 6cdb360

Browse files
committed
wip
1 parent 4aa6748 commit 6cdb360

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

packages/backend/src/models/entities/Notification.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ export class Notification {
6565
* app - アプリ通知
6666
*/
6767
@Index()
68-
@Column('enum', {
69-
enum: notificationTypes,
68+
@Column('varchar', {
69+
length: 64,
7070
comment: 'The type of the Notification.',
7171
})
7272
public type: typeof notificationTypes[number];

packages/backend/src/models/entities/UserProfile.ts

+1-7
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,7 @@ export class UserProfile {
201201
})
202202
public mutedInstances: string[];
203203

204-
@Column('enum', {
205-
enum: [
206-
...notificationTypes,
207-
// マイグレーションで削除が困難なので古いenumは残しておく
208-
...obsoleteNotificationTypes,
209-
],
210-
array: true,
204+
@Column('jsonb', {
211205
default: [],
212206
})
213207
public mutingNotificationTypes: typeof notificationTypes[number][];

0 commit comments

Comments
 (0)