14 lines
546 B
TypeScript
14 lines
546 B
TypeScript
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\``);
|
|
}
|
|
|
|
}
|