add user-level "force content warning" moderation feature

This commit is contained in:
Hazelnoot 2025-01-28 01:47:03 -05:00
parent 2bf8648ebc
commit ea89348b62
11 changed files with 534 additions and 407 deletions

View file

@ -0,0 +1,11 @@
export class AddUserMandatoryCW1738043621143 {
name = 'AddUserCW1738043621143'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" ADD "mandatoryCW" text`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "user" DROP COLUMN "mandatoryCW"`);
}
}