เพิ่ม noti

This commit is contained in:
kittapath 2024-10-07 23:33:55 +07:00
parent 0269036af7
commit 3871ec5f9f
3 changed files with 40 additions and 5 deletions

View 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\``);
}
}