no message
This commit is contained in:
parent
d33569005a
commit
8fd2131b4c
3 changed files with 87 additions and 41 deletions
14
src/migration/1707306721668-update_table_posMaster_isSit.ts
Normal file
14
src/migration/1707306721668-update_table_posMaster_isSit.ts
Normal 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\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue