16 lines
1.4 KiB
TypeScript
16 lines
1.4 KiB
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class AddTableKpiAddBool1720326486719 implements MigrationInterface {
|
|
name = 'AddTableKpiAddBool1720326486719'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` CHANGE \`isReasonCommander\` \`isReasonCommander\` tinyint NULL COMMENT 'หมายเหตุ ผู้บังคับบัญชาเหนือขึ้นไป'`);
|
|
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` CHANGE \`isReasonCommanderHigh\` \`isReasonCommanderHigh\` tinyint NULL COMMENT 'หมายเหตุ ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง'`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` CHANGE \`isReasonCommanderHigh\` \`isReasonCommanderHigh\` tinyint NULL COMMENT 'หมายเหตุ ผู้บังคับบัญชาเหนือขึ้นไปอีกชั้นหนึ่ง' DEFAULT '0'`);
|
|
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` CHANGE \`isReasonCommander\` \`isReasonCommander\` tinyint NULL COMMENT 'หมายเหตุ ผู้บังคับบัญชาเหนือขึ้นไป' DEFAULT '0'`);
|
|
}
|
|
|
|
}
|