mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-24 18:15:02 +00:00
Re-create migration to ensure it gets executed
This commit is contained in:
parent
39264d7d12
commit
ab2e98a4b7
1 changed files with 1 additions and 1 deletions
|
@ -0,0 +1,19 @@
|
|||
import { MigrationInterface, QueryRunner, TableColumn } from "typeorm";
|
||||
|
||||
export class AddSourceMessageIdToReminders1635950555533 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