mirror of
https://github.com/seerr-team/seerr.git
synced 2026-07-31 10:07:04 -04:00
18 lines
561 B
TypeScript
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"`
|
|
);
|
|
}
|
|
}
|