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

19 lines
516 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class v1231579282808087 implements MigrationInterface {
constructor() {
this.name = "v1231579282808087";
}
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "announcement" ADD "updatedAt" TIMESTAMP WITH TIME ZONE`,
undefined,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "announcement" DROP COLUMN "updatedAt"`,
undefined,
);
}
}