2023-10-13 10:17:29 -06:00
|
|
|
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class RemoveShowTimelineReplies1684206886988 implements MigrationInterface {
|
2023-06-14 21:17:56 -06:00
|
|
|
name = "RemoveShowTimelineReplies1684206886988";
|
|
|
|
|
2023-10-13 10:17:29 -06:00
|
|
|
async up(queryRunner: QueryRunner): Promise<void> {
|
2023-06-14 21:17:56 -06:00
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "user" DROP COLUMN "showTimelineReplies"`,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2023-10-13 10:17:29 -06:00
|
|
|
async down(queryRunner: QueryRunner): Promise<void> {
|
2023-06-14 21:17:56 -06:00
|
|
|
await queryRunner.query(
|
|
|
|
`ALTER TABLE "user" ADD "showTimelineReplies" boolean NOT NULL DEFAULT false`,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|