jormungandr-bite/packages/backend/src/migration/1637320813000-forwarded-report.ts
2023-10-13 18:44:25 +02:00

16 lines
502 B
TypeScript

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