12 lines
427 B
TypeScript
12 lines
427 B
TypeScript
import { 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"`);
|
|
}
|
|
}
|