File tree 2 files changed +3
-9
lines changed
packages/backend/src/models/entities
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -65,8 +65,8 @@ export class Notification {
65
65
* app - アプリ通知
66
66
*/
67
67
@Index ( )
68
- @Column ( 'enum ' , {
69
- enum : notificationTypes ,
68
+ @Column ( 'varchar ' , {
69
+ length : 64 ,
70
70
comment : 'The type of the Notification.' ,
71
71
} )
72
72
public type : typeof notificationTypes [ number ] ;
Original file line number Diff line number Diff line change @@ -201,13 +201,7 @@ export class UserProfile {
201
201
} )
202
202
public mutedInstances : string [ ] ;
203
203
204
- @Column ( 'enum' , {
205
- enum : [
206
- ...notificationTypes ,
207
- // マイグレーションで削除が困難なので古いenumは残しておく
208
- ...obsoleteNotificationTypes ,
209
- ] ,
210
- array : true ,
204
+ @Column ( 'jsonb' , {
211
205
default : [ ] ,
212
206
} )
213
207
public mutingNotificationTypes : typeof notificationTypes [ number ] [ ] ;
You can’t perform that action at this time.
0 commit comments