14 lines
574 B
TypeScript
14 lines
574 B
TypeScript
import { MigrationInterface, QueryRunner } from "typeorm";
|
|
|
|
export class UpdataWorkflowAddRmployee11731987222018 implements MigrationInterface {
|
|
name = 'UpdataWorkflowAddRmployee11731987222018'
|
|
|
|
public async up(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE \`roleKeycloak\` ADD \`description\` varchar(255) NULL COMMENT 'คำอธิบาย'`);
|
|
}
|
|
|
|
public async down(queryRunner: QueryRunner): Promise<void> {
|
|
await queryRunner.query(`ALTER TABLE \`roleKeycloak\` DROP COLUMN \`description\``);
|
|
}
|
|
|
|
}
|