diff --git a/src/db/migrations/1698317601046-new.ts b/src/db/migrations/1698317601046-new.ts new file mode 100644 index 000000000..178257725 --- /dev/null +++ b/src/db/migrations/1698317601046-new.ts @@ -0,0 +1,14 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class New1698317601046 implements MigrationInterface { + name = 'New1698317601046' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "familyCount" integer`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "familyCount"`); + } + +} \ No newline at end of file diff --git a/src/db/migrations/1698319197438-new.ts b/src/db/migrations/1698319197438-new.ts new file mode 100644 index 000000000..4b5423b93 --- /dev/null +++ b/src/db/migrations/1698319197438-new.ts @@ -0,0 +1,14 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class New1698319197438 implements MigrationInterface { + name = 'New1698319197438' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "state" integer`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "children_pre_register_entity" DROP COLUMN "state"`); + } + +} \ No newline at end of file diff --git a/src/db/migrations/1698320275272-new.ts b/src/db/migrations/1698320275272-new.ts new file mode 100644 index 000000000..f2e257b4b --- /dev/null +++ b/src/db/migrations/1698320275272-new.ts @@ -0,0 +1,14 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class New1698320275272 implements MigrationInterface { + name = 'New1698320275272' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "children_pre_register_entity" RENAME COLUMN "bioTranslations" TO "bio"`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE "children_pre_register_entity" RENAME COLUMN "bio" TO "bioTranslations"`); + } + +} \ No newline at end of file