migrate
This commit is contained in:
parent
4fcf9b0492
commit
eaaf085472
1 changed files with 14 additions and 0 deletions
14
src/migration/1747127699103-updatesalartprofileaddisuse.ts
Normal file
14
src/migration/1747127699103-updatesalartprofileaddisuse.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class Updatesalartprofileaddisuse1747127699103 implements MigrationInterface {
|
||||
name = 'Updatesalartprofileaddisuse1747127699103'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfile\` ADD \`isGood\` tinyint NULL COMMENT 'ดีเด่น'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`salaryProfile\` DROP COLUMN \`isGood\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue