first
This commit is contained in:
commit
925c5d1ab2
60 changed files with 18843 additions and 0 deletions
|
|
@ -0,0 +1,18 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class UpdateTableEvaluateTittleToTitle1706070949738 implements MigrationInterface {
|
||||
name = 'UpdateTableEvaluateTittleToTitle1706070949738'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`meeting\` CHANGE \`tittle\` \`title\` varchar(255) NULL COMMENT 'ชื่อการประชุม'`);
|
||||
await queryRunner.query(`ALTER TABLE \`meeting\` DROP COLUMN \`title\``);
|
||||
await queryRunner.query(`ALTER TABLE \`meeting\` ADD \`title\` varchar(255) NULL COMMENT 'ชื่อการประชุม'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`meeting\` DROP COLUMN \`title\``);
|
||||
await queryRunner.query(`ALTER TABLE \`meeting\` ADD \`title\` varchar(255) NULL COMMENT 'ชื่อการประชุม'`);
|
||||
await queryRunner.query(`ALTER TABLE \`meeting\` CHANGE \`title\` \`tittle\` varchar(255) NULL COMMENT 'ชื่อการประชุม'`);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue