jormungandr-bite/packages/backend/src/migration/1629778475000-deepl-integration2.ts
2023-10-13 18:44:25 +02:00

14 lines
498 B
TypeScript

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