hippofish/packages/backend/src/migration/1580154400017-v12-9.ts

17 lines
462 B
TypeScript
Raw Normal View History

import { MigrationInterface, QueryRunner } from "typeorm";
export class v1291580154400017 implements MigrationInterface {
async up(queryRunner: QueryRunner): Promise<void> {
2023-04-07 03:56:46 +02:00
await queryRunner.query(
`ALTER TABLE "antenna" ADD "withReplies" boolean NOT NULL DEFAULT false`,
undefined,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
2023-04-07 03:56:46 +02:00
await queryRunner.query(
`ALTER TABLE "antenna" DROP COLUMN "withReplies"`,
undefined,
);
}
2021-11-11 18:02:25 +01:00
}