บันทึกลงทะเบียนประวัติ

This commit is contained in:
Kittapath 2024-04-10 11:53:25 +07:00
parent 166c919bbe
commit b8e1c93cb4
3 changed files with 77 additions and 7 deletions

View file

@ -0,0 +1,14 @@
import { MigrationInterface, QueryRunner } from "typeorm";
export class UpdateTableScholarshipAddProfileId1712721970803 implements MigrationInterface {
name = 'UpdateTableScholarshipAddProfileId1712721970803'
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`developmentScholarship\` ADD \`profileId\` varchar(40) NULL COMMENT 'id profile'`);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.query(`ALTER TABLE \`developmentScholarship\` DROP COLUMN \`profileId\``);
}
}