no message
This commit is contained in:
parent
04406080dc
commit
fb5a30c699
4 changed files with 123 additions and 1 deletions
14
src/migration/1732163306077-updata_org_add_remark.ts
Normal file
14
src/migration/1732163306077-updata_org_add_remark.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdataOrgAddRemark1732163306077 implements MigrationInterface {
|
||||
name = 'UpdataOrgAddRemark1732163306077'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`orgRevision\` ADD \`remark\` varchar(255) NULL COMMENT 'หมายเหตุ'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`orgRevision\` DROP COLUMN \`remark\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue