เพิ่มเหตุผล posmaster

This commit is contained in:
Kittapath 2024-04-09 12:18:52 +07:00
parent 7a2ed91612
commit 013ccf60e6
7 changed files with 433 additions and 72 deletions

View file

@ -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\``);
}
}