jormungandr-bite/packages/backend/src/migration/1579270193251-v12-2.ts

19 lines
535 B
TypeScript
Raw Normal View History

import { MigrationInterface, QueryRunner } from "typeorm";
export class v1221579270193251 implements MigrationInterface {
2023-04-06 19:56:46 -06:00
constructor() {
this.name = "v1221579270193251";
}
async up(queryRunner: QueryRunner): Promise<void> {
2023-04-06 19:56:46 -06:00
await queryRunner.query(
`ALTER TABLE "announcement_read" ADD "createdAt" TIMESTAMP WITH TIME ZONE NOT NULL`,
undefined,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
2023-04-06 19:56:46 -06:00
await queryRunner.query(
`ALTER TABLE "announcement_read" DROP COLUMN "createdAt"`,
undefined,
);
}
2021-11-11 10:02:25 -07:00
}