ออกคำสั่ง
This commit is contained in:
parent
505baa7bba
commit
40f45b01e6
5 changed files with 203 additions and 3 deletions
14
src/migration/1719559101541-add_table_add_date.ts
Normal file
14
src/migration/1719559101541-add_table_add_date.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class AddTableAddDate1719559101541 implements MigrationInterface {
|
||||
name = 'AddTableAddDate1719559101541'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` ADD \`openDate\` datetime NULL COMMENT 'วันที่การรับทราบผลการประเมิน'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`kpiUserEvaluation\` DROP COLUMN \`openDate\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue