no message
This commit is contained in:
parent
a40a2a7f2b
commit
9991b3c8ce
2 changed files with 18 additions and 1 deletions
|
|
@ -18,8 +18,9 @@ export class OrgRevision extends EntityBase {
|
|||
orgRevisionName: string;
|
||||
|
||||
@Column({
|
||||
nullable: true,
|
||||
comment: "หมายเหตุ",
|
||||
length: 255,
|
||||
type: "text",
|
||||
default: null,
|
||||
})
|
||||
remark: string;
|
||||
|
|
|
|||
16
src/migration/1732165078861-updata_org_add_remark1.ts
Normal file
16
src/migration/1732165078861-updata_org_add_remark1.ts
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdataOrgAddRemark11732165078861 implements MigrationInterface {
|
||||
name = 'UpdataOrgAddRemark11732165078861'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`orgRevision\` DROP COLUMN \`remark\``);
|
||||
await queryRunner.query(`ALTER TABLE \`orgRevision\` ADD \`remark\` text NULL COMMENT 'หมายเหตุ'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`orgRevision\` DROP COLUMN \`remark\``);
|
||||
await queryRunner.query(`ALTER TABLE \`orgRevision\` ADD \`remark\` varchar(255) NULL COMMENT 'หมายเหตุ'`);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue