Skip to content

Commit

Permalink
prerefiter expanded
Browse files Browse the repository at this point in the history
  • Loading branch information
ehsan-g committed Oct 30, 2023
1 parent e2fdb37 commit 4af951e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/db/migrations/1698319100784-new.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { MigrationInterface, QueryRunner } from 'typeorm';

export class New1698319100784 implements MigrationInterface {
name = 'New1698319100784';

public async up(queryRunner: QueryRunner): Promise<void> {
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<void> {
await queryRunner.query(
`ALTER TABLE "children_pre_register_entity" DROP COLUMN "lastName"`,
);
await queryRunner.query(
`ALTER TABLE "children_pre_register_entity" DROP COLUMN "firstName"`,
);
}
}

0 comments on commit 4af951e

Please sign in to comment.