jormungandr-bite/packages/backend/src/migration/1610283021566-registry3.ts
2023-10-13 18:44:25 +02:00

16 lines
504 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class registry31610283021566 implements MigrationInterface {
constructor() {
this.name = "registry31610283021566";
}
async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "registry_item" ALTER COLUMN "value" DROP NOT NULL`,
);
}
async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(
`ALTER TABLE "registry_item" ALTER COLUMN "value" SET NOT NULL`,
);
}
}