hippofish/packages/backend/src/migration/1607151207216-instance-pinned-clip.ts

12 lines
432 B
TypeScript

import type { MigrationInterface, QueryRunner } from "typeorm";
export class instancePinnedClip1607151207216 implements MigrationInterface {
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"`);
}
}