-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
1,364 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
|
||
export class New1698406143230 implements MigrationInterface { | ||
name = 'New1698406143230' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "birthPlace"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "birthPlaceId" integer`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "birthPlaceName" character varying`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "birthPlaceName"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "birthPlaceId"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "birthPlace" integer`); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
|
||
export class New1698407672749 implements MigrationInterface { | ||
name = 'New1698407672749' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "bio"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "bio" hstore`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "bio"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "bio" character varying`); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
|
||
export class New1698426095522 implements MigrationInterface { | ||
name = 'New1698426095522' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "socialWorkerId" uuid`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "ngoId" uuid NOT NULL`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD CONSTRAINT "FK_61094282a2c5eca786880ba1c86" FOREIGN KEY ("socialWorkerId") REFERENCES "contributor_entity"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD CONSTRAINT "FK_11bdf6d719c11cfc798c99a3ec9" FOREIGN KEY ("ngoId") REFERENCES "ngo_entity"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP CONSTRAINT "FK_11bdf6d719c11cfc798c99a3ec9"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP CONSTRAINT "FK_61094282a2c5eca786880ba1c86"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "ngoId"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "socialWorkerId"`); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
|
||
export class New1698427011214 implements MigrationInterface { | ||
name = 'New1698427011214' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP CONSTRAINT "FK_11bdf6d719c11cfc798c99a3ec9"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ALTER COLUMN "ngoId" DROP NOT NULL`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD CONSTRAINT "FK_11bdf6d719c11cfc798c99a3ec9" FOREIGN KEY ("ngoId") REFERENCES "ngo_entity"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP CONSTRAINT "FK_11bdf6d719c11cfc798c99a3ec9"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ALTER COLUMN "ngoId" SET NOT NULL`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD CONSTRAINT "FK_11bdf6d719c11cfc798c99a3ec9" FOREIGN KEY ("ngoId") REFERENCES "ngo_entity"("id") ON DELETE NO ACTION ON UPDATE NO ACTION`); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"`); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
|
||
export class New1698498268673 implements MigrationInterface { | ||
name = 'New1698498268673' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "education"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "educationLevel" integer`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "schoolType" integer`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "schoolType"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "educationLevel"`); | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "education" integer`); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
|
||
export class New1698509521151 implements MigrationInterface { | ||
name = 'New1698509521151' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ALTER COLUMN "sex" SET NOT NULL`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ALTER COLUMN "sex" DROP NOT NULL`); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { MigrationInterface, QueryRunner } from "typeorm"; | ||
|
||
export class New1698509621401 implements MigrationInterface { | ||
name = 'New1698509621401' | ||
|
||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "flaskChildId" integer`); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "flaskChildId"`); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.