add year assessments
This commit is contained in:
parent
e208b1ef1b
commit
7bf4310063
2 changed files with 23 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateProfileAssessmentAddYear1738644573688 implements MigrationInterface {
|
||||
name = 'UpdateProfileAssessmentAddYear1738644573688'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profileAssessment\` ADD \`year\` varchar(255) NULL COMMENT 'ปีการประเมิน'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`profileAssessment\` DROP COLUMN \`year\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue