iceshrimp/packages/backend/src/migration/1579282808087-v12-3.ts

19 lines
516 B
TypeScript
Raw Normal View History

import { MigrationInterface, QueryRunner } from "typeorm";
export class v1231579282808087 implements MigrationInterface {
2023-04-07 03:56:46 +02:00
constructor() {
this.name = "v1231579282808087";
}
async up(queryRunner: QueryRunner): Promise<void> {
2023-04-07 03:56:46 +02:00
await queryRunner.query(
`ALTER TABLE "announcement" ADD "updatedAt" TIMESTAMP WITH TIME ZONE`,
undefined,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
2023-04-07 03:56:46 +02:00
await queryRunner.query(
`ALTER TABLE "announcement" DROP COLUMN "updatedAt"`,
undefined,
);
}
2021-11-11 18:02:25 +01:00
}