1
0
Fork 1
mirror of https://example.com synced 2024-11-24 08:06:39 +09:00
firefish/migration/1610283021566-registry3.ts
syuilo 6c975275f8
Registry (#7073)
* wip

* wip

* wip

* wip

* wip

* Update registry.value.vue

* wip

* wip

* wip

* wip

* typo
2021-01-11 20:38:34 +09:00

14 lines
504 B
TypeScript

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`);
}
}