mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-30 18:33:09 +02:00
15 lines
504 B
TypeScript
15 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`);
|
||
|
}
|
||
|
|
||
|
}
|