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