jormungandr-bite/packages/backend/src/migration/1607151207216-instance-pinned-clip.ts
2023-10-13 18:44:25 +02:00

14 lines
495 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class instancePinnedClip1607151207216 implements MigrationInterface {
constructor() {
this.name = "instancePinnedClip1607151207216";
}
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "meta" ADD "pinnedClipId" character varying(32)`,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "meta" DROP COLUMN "pinnedClipId"`);
}
}