14 lines
618 B
TypeScript
14 lines
618 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class UpdateTableKpiUserEvaluationAddTotalPoint1718605582205 implements MigrationInterface {
|
|
name = 'UpdateTableKpiUserEvaluationAddTotalPoint1718605582205'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` ADD \`totalPoint\` double NULL COMMENT 'คะแนนประเมิน'`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` DROP COLUMN \`totalPoint\``);
|
|
}
|
|
|
|
}
|