forked from mirrors/iceshrimp
19 lines
516 B
TypeScript
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,
|
|
);
|
|
}
|
|
}
|