no message
This commit is contained in:
parent
b85de85d7e
commit
31fbfaed3b
3 changed files with 93 additions and 23 deletions
14
src/migration/1732085607231-update_workflow_add_employee.ts
Normal file
14
src/migration/1732085607231-update_workflow_add_employee.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateWorkflowAddEmployee1732085607231 implements MigrationInterface {
|
||||
name = 'UpdateWorkflowAddEmployee1732085607231'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`workflow\` DROP COLUMN \`profileType\``);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`workflow\` ADD \`profileType\` varchar(255) NULL COMMENT 'ผู้ใช้งาน'`);
|
||||
}
|
||||
|
||||
}
|
||||
14
src/migration/1732087058773-update_workflow_add_employee1.ts
Normal file
14
src/migration/1732087058773-update_workflow_add_employee1.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateWorkflowAddEmployee11732087058773 implements MigrationInterface {
|
||||
name = 'UpdateWorkflowAddEmployee11732087058773'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`workflow\` ADD \`profileType\` varchar(255) NULL COMMENT 'ผู้ใช้งาน'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`workflow\` DROP COLUMN \`profileType\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue