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

export class New1698317601046 implements MigrationInterface {
name = 'New1698317601046'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "familyCount" integer`);
}

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

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

export class New1698319197438 implements MigrationInterface {
name = 'New1698319197438'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" ADD "state" integer`);
}

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

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

export class New1698320275272 implements MigrationInterface {
name = 'New1698320275272'

public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" RENAME COLUMN "bioTranslations" TO "bio"`);
}

public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE "children_pre_register_entity" RENAME COLUMN "bio" TO "bioTranslations"`);
}

}

0 comments on commit 285230c

Please sign in to comment.