3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

When updating cases, update existing case embed in case log channel if possible

This commit is contained in:
Dragory 2020-08-10 02:35:47 +03:00
parent 7cd58c2b6d
commit 19a82b767f
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
4 changed files with 46 additions and 4 deletions

View file

@ -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");
}
}