blob: ca0c33eea9802706c1ac8fc3221f7e4c17573f07 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
import { MigrationInterface, QueryRunner } from "typeorm";
export class MessageSnapshots1765185286988 implements MigrationInterface {
name = "MessageSnapshots1765185286988";
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "messages" ADD "message_snapshots" text NOT NULL DEFAULT '[]'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "messages" DROP COLUMN "message_snapshots"`);
}
}
|