feat(backend): allow disabling cache for sensitive files

This commit is contained in:
Kagami Sascha Rosylight
2023-07-12 02:13:27 +02:00
parent 1a096c557e
commit c277934328
13 changed files with 189 additions and 16 deletions

View File

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