no message

This commit is contained in:
kittapath 2024-11-21 12:13:24 +07:00
parent a40a2a7f2b
commit 9991b3c8ce
2 changed files with 18 additions and 1 deletions

View file

@ -18,8 +18,9 @@ export class OrgRevision extends EntityBase {
orgRevisionName: string;
@Column({
nullable: true,
comment: "หมายเหตุ",
length: 255,
type: "text",
default: null,
})
remark: string;

View 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 'หมายเหตุ'`);
}
}