mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Add is_moderator field to the contribution_messages table.
This commit is contained in:
parent
915cf4fcf1
commit
0dc45d81c5
@ -48,4 +48,7 @@ export class ContributionMessage extends BaseEntity {
|
|||||||
|
|
||||||
@Column({ length: 12, nullable: false, collation: 'utf8mb4_unicode_ci' })
|
@Column({ length: 12, nullable: false, collation: 'utf8mb4_unicode_ci' })
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
|
@Column({ name: 'is_moderator', type: 'bool', nullable: false, default: false })
|
||||||
|
isModerator: boolean
|
||||||
}
|
}
|
||||||
|
|||||||
@ -20,6 +20,7 @@ export async function upgrade(queryFn: (query: string, values?: any[]) => Promis
|
|||||||
\`deleted_at\` datetime DEFAULT NULL,
|
\`deleted_at\` datetime DEFAULT NULL,
|
||||||
\`deleted_by\` int(10) unsigned DEFAULT NULL,
|
\`deleted_by\` int(10) unsigned DEFAULT NULL,
|
||||||
\`type\` varchar(12) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT "DIALOG",
|
\`type\` varchar(12) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT "DIALOG",
|
||||||
|
\`is_moderator\` boolean NOT NULL DEFAULT false,
|
||||||
PRIMARY KEY (\`id\`)
|
PRIMARY KEY (\`id\`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||||
`)
|
`)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user