hrms-api-org/src/migration/1730463698383-add_table_commandSign1.ts
2024-11-01 19:53:26 +07:00

14 lines
725 B
TypeScript

import { MigrationInterface, QueryRunner } from "typeorm";
export class AddTableCommandSign11730463698383 implements MigrationInterface {
name = 'AddTableCommandSign11730463698383'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`commandSign\` CHANGE \`isActive\` \`isSignatory\` tinyint NOT NULL COMMENT 'เป็นผู้มีอำนาจลงนาม' DEFAULT '0'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`commandSign\` CHANGE \`isSignatory\` \`isActive\` tinyint NOT NULL COMMENT 'เป็นผู้มีอำนาจลงนาม' DEFAULT '0'`);
}
}