Merge branch 'develop' of github.com:Frappet/bma-ehr-organization into develop
This commit is contained in:
commit
8fe7d295fe
6 changed files with 61 additions and 3 deletions
|
|
@ -0,0 +1,16 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTablePosAddIsSpecial1708423229800 implements MigrationInterface {
|
||||
name = 'UpdateTablePosAddIsSpecial1708423229800'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`posDict\` ADD \`isSpacial\` tinyint NOT NULL COMMENT 'ฉ' DEFAULT 0`);
|
||||
await queryRunner.query(`ALTER TABLE \`position\` ADD \`isSpacial\` tinyint NOT NULL COMMENT 'ฉ' DEFAULT 0`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`position\` DROP COLUMN \`isSpacial\``);
|
||||
await queryRunner.query(`ALTER TABLE \`posDict\` DROP COLUMN \`isSpacial\``);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTablePosAddIsSpecial11708423721800 implements MigrationInterface {
|
||||
name = 'UpdateTablePosAddIsSpecial11708423721800'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`posDict\` CHANGE \`isSpacial\` \`isSpecial\` tinyint NOT NULL COMMENT 'ฉ' DEFAULT '0'`);
|
||||
await queryRunner.query(`ALTER TABLE \`position\` CHANGE \`isSpacial\` \`isSpecial\` tinyint NOT NULL COMMENT 'ฉ' DEFAULT '0'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`position\` CHANGE \`isSpecial\` \`isSpacial\` tinyint NOT NULL COMMENT 'ฉ' DEFAULT '0'`);
|
||||
await queryRunner.query(`ALTER TABLE \`posDict\` CHANGE \`isSpecial\` \`isSpacial\` tinyint NOT NULL COMMENT 'ฉ' DEFAULT '0'`);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue