From 877207412aa149a20482b3c123626595742905e6 Mon Sep 17 00:00:00 2001 From: Kittapath Date: Fri, 29 Mar 2024 10:34:52 +0700 Subject: [PATCH] migrate --- ...1590179-update_table_salaryprofile_add_root1.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/migration/1711631590179-update_table_salaryprofile_add_root1.ts 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\``); + } + +}