Files
seerr/server/migration/postgres/1781732098511-AddIgnoreQuotaToMediaRequest.ts

18 lines
561 B
TypeScript

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