hippofish/packages/backend/src/migration/1699305365258-more-urls.ts

14 lines
404 B
TypeScript
Raw Normal View History

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