migration update_table_profiehonor_add_isdate
This commit is contained in:
parent
35d3d1381a
commit
07d2833b41
1 changed files with 14 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTableProfiehonorAddIsdate1711094009560 implements MigrationInterface {
|
||||
name = 'UpdateTableProfiehonorAddIsdate1711094009560'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profileHonor\` ADD \`isDate\` tinyint NULL COMMENT 'ประเภทช่วงเวลา'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profileHonor\` DROP COLUMN \`isDate\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue