mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-24 19:07:32 -07:00
14 lines
498 B
TypeScript
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"`);
|
|
}
|
|
}
|