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