diff --git a/src/migration/1711631590179-update_table_salaryprofile_add_root1.ts b/src/migration/1711631590179-update_table_salaryprofile_add_root1.ts new file mode 100644 index 0000000..fd75907 --- /dev/null +++ b/src/migration/1711631590179-update_table_salaryprofile_add_root1.ts @@ -0,0 +1,14 @@ +import { MigrationInterface, QueryRunner } from "typeorm"; + +export class UpdateTableSalaryprofileAddRoot11711631590179 implements MigrationInterface { + name = 'UpdateTableSalaryprofileAddRoot11711631590179' + + public async up(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE \`salaryOrgEmployee\` ADD \`root\` varchar(255) NULL COMMENT 'orgRoot'`); + } + + public async down(queryRunner: QueryRunner): Promise { + await queryRunner.query(`ALTER TABLE \`salaryOrgEmployee\` DROP COLUMN \`root\``); + } + +}