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