wip
This commit is contained in:
parent
4aa6748387
commit
6cdb3600e2
|
@ -65,8 +65,8 @@ export class Notification {
|
||||||
* app - アプリ通知
|
* app - アプリ通知
|
||||||
*/
|
*/
|
||||||
@Index()
|
@Index()
|
||||||
@Column('enum', {
|
@Column('varchar', {
|
||||||
enum: notificationTypes,
|
length: 64,
|
||||||
comment: 'The type of the Notification.',
|
comment: 'The type of the Notification.',
|
||||||
})
|
})
|
||||||
public type: typeof notificationTypes[number];
|
public type: typeof notificationTypes[number];
|
||||||
|
|
|
@ -201,13 +201,7 @@ export class UserProfile {
|
||||||
})
|
})
|
||||||
public mutedInstances: string[];
|
public mutedInstances: string[];
|
||||||
|
|
||||||
@Column('enum', {
|
@Column('jsonb', {
|
||||||
enum: [
|
|
||||||
...notificationTypes,
|
|
||||||
// マイグレーションで削除が困難なので古いenumは残しておく
|
|
||||||
...obsoleteNotificationTypes,
|
|
||||||
],
|
|
||||||
array: true,
|
|
||||||
default: [],
|
default: [],
|
||||||
})
|
})
|
||||||
public mutingNotificationTypes: typeof notificationTypes[number][];
|
public mutingNotificationTypes: typeof notificationTypes[number][];
|
||||||
|
|
Loading…
Reference in New Issue