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:
parent
fb44a6558f
commit
39264d7d12
4 changed files with 24 additions and 1 deletions
|
@ -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");
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue