no message

This commit is contained in:
Kittapath 2024-02-07 18:53:15 +07:00
parent d33569005a
commit 8fd2131b4c
3 changed files with 87 additions and 41 deletions

View file

@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTablePosMasterIsSit1707306721668 implements MigrationInterface {
name = 'UpdateTablePosMasterIsSit1707306721668'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`posMaster\` ADD \`isSit\` tinyint NOT NULL COMMENT 'นั่งทับตำแหน่งไหม' DEFAULT 0`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`posMaster\` DROP COLUMN \`isSit\``);
}
}