เพิ่มเหตุผล posmaster
This commit is contained in:
parent
7a2ed91612
commit
013ccf60e6
7 changed files with 433 additions and 72 deletions
|
|
@ -0,0 +1,16 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTablePosmasterAddReason1712639179589 implements MigrationInterface {
|
||||
name = 'UpdateTablePosmasterAddReason1712639179589'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`employeePosMaster\` ADD \`reason\` text NULL COMMENT 'หมายเหตุ'`);
|
||||
await queryRunner.query(`ALTER TABLE \`posMaster\` ADD \`reason\` text NULL COMMENT 'หมายเหตุ'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`posMaster\` DROP COLUMN \`reason\``);
|
||||
await queryRunner.query(`ALTER TABLE \`employeePosMaster\` DROP COLUMN \`reason\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue