iceshrimp/packages/backend/src/migration/1656408772602-nsfw-detection-6.ts
2023-10-13 18:44:25 +02:00

16 lines
532 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class nsfwDetection61656408772602 implements MigrationInterface {
name = "nsfwDetection61656408772602";
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "meta" ADD "enableSensitiveMediaDetectionForVideos" boolean NOT NULL DEFAULT false`,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "meta" DROP COLUMN "enableSensitiveMediaDetectionForVideos"`,
);
}
}