Files
channels-seerr/server/migration/postgres/1760028688313-AddIgnoreQuotaToMediaRequest.ts
2025-10-09 19:16:53 +02:00

20 lines
563 B
TypeScript

import type { MigrationInterface, QueryRunner } from 'typeorm';
export class AddIgnoreQuotaToMediaRequest1760028688313
implements MigrationInterface
{
name = 'AddIgnoreQuotaToMediaRequest1760028688313';
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"`
);
}
}