Add is_moderator field to the contribution_messages table.

This commit is contained in:
elweyn 2022-09-06 11:22:16 +02:00
parent 915cf4fcf1
commit 0dc45d81c5
2 changed files with 4 additions and 0 deletions

View File

@ -48,4 +48,7 @@ export class ContributionMessage extends BaseEntity {
@Column({ length: 12, nullable: false, collation: 'utf8mb4_unicode_ci' })
type: string
@Column({ name: 'is_moderator', type: 'bool', nullable: false, default: false })
isModerator: boolean
}

View File

@ -20,6 +20,7 @@ export async function upgrade(queryFn: (query: string, values?: any[]) => Promis
\`deleted_at\` datetime DEFAULT NULL,
\`deleted_by\` int(10) unsigned DEFAULT NULL,
\`type\` varchar(12) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT "DIALOG",
\`is_moderator\` boolean NOT NULL DEFAULT false,
PRIMARY KEY (\`id\`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
`)