import { MigrationInterface, QueryRunner } from "typeorm"; export class UpdateTablePosmasterAddReason1712639179589 implements MigrationInterface { name = 'UpdateTablePosmasterAddReason1712639179589' public async up(queryRunner: QueryRunner): Promise { 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 { await queryRunner.query(`ALTER TABLE \`posMaster\` DROP COLUMN \`reason\``); await queryRunner.query(`ALTER TABLE \`employeePosMaster\` DROP COLUMN \`reason\``); } }