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 c5ddee3 commit bceffd2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 29 deletions.
14 changes: 14 additions & 0 deletions src/db/1698393505557-new.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// import { MigrationInterface, QueryRunner } from "typeorm";

// export class New1698393505557 implements MigrationInterface {
// name = 'New1698393505557'

// public async up(queryRunner: QueryRunner): Promise<void> {
// await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ALTER COLUMN "isApproved" SET DEFAULT false`);
// }

// public async down(queryRunner: QueryRunner): Promise<void> {
// await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ALTER COLUMN "isApproved" DROP DEFAULT`);
// }

// }
18 changes: 18 additions & 0 deletions src/db/1698477148560-new.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// import { MigrationInterface, QueryRunner } from "typeorm";

// export class New1698477148560 implements MigrationInterface {
// name = 'New1698477148560'

// public async up(queryRunner: QueryRunner): Promise<void> {
// await queryRunner.query(`ALTER TABLE "children_pre_register_entity" RENAME COLUMN "isApproved" TO "status"`);
// await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "status"`);
// await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "status" integer DEFAULT '0'`);
// }

// public async down(queryRunner: QueryRunner): Promise<void> {
// await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "status"`);
// await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "status" boolean DEFAULT false`);
// await queryRunner.query(`ALTER TABLE "children_pre_register_entity" RENAME COLUMN "status" TO "isApproved"`);
// }

// }
29 changes: 0 additions & 29 deletions src/db/migrations/1698477148560-new.ts

This file was deleted.

0 comments on commit bceffd2

Please sign in to comment.