hippofish/packages/backend/src/migration/1683980686995-ExperimentalFeatures.ts

16 lines
469 B
TypeScript

import type { MigrationInterface, QueryRunner } from "typeorm";
export class ExperimentalFeatures1683980686995 implements MigrationInterface {
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "meta"
ADD "experimentalFeatures" jsonb NOT NULL DEFAULT '{}'
`);
}
async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`
ALTER TABLE "meta" DROP COLUMN "experimentalFeatures"
`);
}
}