เพิ่ม noti
This commit is contained in:
parent
0269036af7
commit
3871ec5f9f
3 changed files with 40 additions and 5 deletions
14
src/migration/1728318691161-add_table_assign1.ts
Normal file
14
src/migration/1728318691161-add_table_assign1.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
|
||||
export class AddTableAssign11728318691161 implements MigrationInterface {
|
||||
name = 'AddTableAssign11728318691161'
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`commandRecive\` ADD \`profileId\` varchar(40) NULL COMMENT 'คีย์นอก(FK)ของตาราง profile'`);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<void> {
|
||||
await queryRunner.query(`ALTER TABLE \`commandRecive\` DROP COLUMN \`profileId\``);
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue