jormungandr-bite/packages/backend/src/migration/1580154400017-v12-9.ts

19 lines
516 B
TypeScript
Raw Normal View History

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