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

Reply to originally invoking message for reminders

We only do this if we have a reminder body, otherwise we would link to the original message twice.
This commit is contained in:
Dark 2021-09-13 03:09:06 +02:00
parent fb44a6558f
commit 39264d7d12
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8
4 changed files with 24 additions and 1 deletions

View file

@ -0,0 +1,19 @@
import { MigrationInterface, QueryRunner, TableColumn } from "typeorm";
export class AddSourceMessageIdToReminders1631494429170 implements MigrationInterface {
public async up(queryRunner: QueryRunner): Promise<void> {
await queryRunner.addColumns("reminders", [
new TableColumn({
name: "source_message_id",
type: "bigint",
isNullable: true,
default: null,
unsigned: true,
}),
]);
}
public async down(queryRunner: QueryRunner): Promise<void> {
await queryRunner.dropColumn("reminders", "source_message_id");
}
}