martmull
2024-10-22 14:51:03 +02:00
committed by GitHub
parent 7fc844ea8f
commit e767f16dbe
26 changed files with 547 additions and 242 deletions

View File

@ -0,0 +1,19 @@
import { MigrationInterface, QueryRunner } from 'typeorm';
export class UpdateServerlessFunctionColumns1729162426186
implements MigrationInterface
{
name = 'UpdateServerlessFunctionColumns1729162426186';
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "metadata"."serverlessFunction" ADD "publishedVersions" jsonb NOT NULL DEFAULT '[]'`,
);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "metadata"."serverlessFunction" DROP COLUMN "publishedVersions"`,
);
}
}