2024-03-03 05:20:32 +01:00
|
|
|
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,
|
|
|
|
);
|
|
|
|
}
|
2024-03-03 05:20:32 +01:00
|
|
|
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
|
|
|
}
|