summaryrefslogtreecommitdiff
path: root/migration/1610283021566-registry3.ts
blob: 61f235fb221f652eee92cdfc50144b245c2d45e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import {MigrationInterface, QueryRunner} from "typeorm";

export class registry31610283021566 implements MigrationInterface {
    name = 'registry31610283021566'

    public async up(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`ALTER TABLE "registry_item" ALTER COLUMN "value" DROP NOT NULL`);
    }

    public async down(queryRunner: QueryRunner): Promise<void> {
        await queryRunner.query(`ALTER TABLE "registry_item" ALTER COLUMN "value" SET NOT NULL`);
    }

}