2024-04-07 05:38:52 +02:00
|
|
|
import type { MigrationInterface, QueryRunner } from "typeorm";
|
2024-03-03 05:20:32 +01:00
|
|
|
|
|
|
|
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"`);
|
|
|
|
}
|
|
|
|
}
|