update function tab

This commit is contained in:
AdisakKanthawilang 2024-08-07 14:03:40 +07:00
parent 4c0c02cc8b
commit 78fb5b5c0a
3 changed files with 177 additions and 77 deletions

View file

@ -0,0 +1,20 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableMigration080720241723013963408 implements MigrationInterface {
name = 'UpdateTableMigration080720241723013963408'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`development\` ADD \`progressTracking\` longtext NULL COMMENT 'การติดตามความก้าวหน้า'`);
await queryRunner.query(`ALTER TABLE \`development\` ADD \`projectEvaluation\` longtext NULL COMMENT 'การประเมินผลโครงการ'`);
await queryRunner.query(`ALTER TABLE \`development\` ADD \`obstacle\` longtext NULL COMMENT 'ปัญหาอุปสรรค'`);
await queryRunner.query(`ALTER TABLE \`development\` ADD \`suggestion\` longtext NULL COMMENT 'ข้อเสนอแนะ'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`development\` DROP COLUMN \`suggestion\``);
await queryRunner.query(`ALTER TABLE \`development\` DROP COLUMN \`obstacle\``);
await queryRunner.query(`ALTER TABLE \`development\` DROP COLUMN \`projectEvaluation\``);
await queryRunner.query(`ALTER TABLE \`development\` DROP COLUMN \`progressTracking\``);
}
}