When updating cases, update existing case embed in case log channel if possible
This commit is contained in:
parent
7cd58c2b6d
commit
19a82b767f
4 changed files with 46 additions and 4 deletions
|
@ -0,0 +1,21 @@
|
|||
import { MigrationInterface, QueryRunner } from "typeorm";
|
||||
import { TableColumn } from "typeorm/index";
|
||||
|
||||
export class AddLogMessageIdToCases1597015567215 implements MigrationInterface {
|
||||
public async up(queryRunner: QueryRunner): Promise<any> {
|
||||
await queryRunner.addColumn(
|
||||
"cases",
|
||||
new TableColumn({
|
||||
name: "log_message_id",
|
||||
type: "varchar",
|
||||
length: "64",
|
||||
isNullable: true,
|
||||
default: null,
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<any> {
|
||||
await queryRunner.dropColumn("cases", "log_message_id");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue