add: mark instance as NSFW

Closes transfem-org/Sharkey#197
This commit is contained in:
Mar0xy 2023-12-05 22:19:53 +01:00
parent 6f9ba940b9
commit 93869a5f34
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828
11 changed files with 85 additions and 16 deletions

View file

@ -0,0 +1,11 @@
export class NSFWInstance1701809447000 {
name = 'NSFWInstance1701809447000'
async up(queryRunner) {
await queryRunner.query(`ALTER TABLE "instance" ADD "isNSFW" boolean NOT NULL DEFAULT false`);
}
async down(queryRunner) {
await queryRunner.query(`ALTER TABLE "instance" DROP COLUMN "isNSFW"`);
}
}