From 4af951ef956157c6915bd3e5ef188adad25c7d89 Mon Sep 17 00:00:00 2001 From: Gbuntu Date: Mon, 30 Oct 2023 09:09:27 +0330 Subject: [PATCH] prerefiter expanded --- src/db/migrations/1698319100784-new.ts | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/db/migrations/1698319100784-new.ts diff --git a/src/db/migrations/1698319100784-new.ts b/src/db/migrations/1698319100784-new.ts new file mode 100644 index 000000000..28a01dd6a --- /dev/null +++ b/src/db/migrations/1698319100784-new.ts @@ -0,0 +1,23 @@ +import { MigrationInterface, QueryRunner } from 'typeorm'; + +export class New1698319100784 implements MigrationInterface { + name = 'New1698319100784'; + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "children_pre_register_entity" ADD "firstName" hstore`, + ); + await queryRunner.query( + `ALTER TABLE "children_pre_register_entity" ADD "lastName" hstore`, + ); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query( + `ALTER TABLE "children_pre_register_entity" DROP COLUMN "lastName"`, + ); + await queryRunner.query( + `ALTER TABLE "children_pre_register_entity" DROP COLUMN "firstName"`, + ); + } +}