mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Added created_at field to reminders table. Added time remaining timestamp to reminders command. Added creation date timestamp to reminder activation message
This commit is contained in:
parent
4e1b135724
commit
17decd09d5
4 changed files with 44 additions and 6 deletions
|
@ -0,0 +1,18 @@
|
|||
import {MigrationInterface, QueryRunner, TableColumn} from "typeorm";
|
||||
|
||||
export class CreateReminderCreatedAtField1578445483917 implements MigrationInterface {
|
||||
|
||||
public async up(queryRunner: QueryRunner): Promise<any> {
|
||||
await queryRunner.addColumn("reminders",
|
||||
new TableColumn({
|
||||
name: "created_at",
|
||||
type: "datetime",
|
||||
isNullable: false
|
||||
}));
|
||||
}
|
||||
|
||||
public async down(queryRunner: QueryRunner): Promise<any> {
|
||||
await queryRunner.dropColumn("reminders", "created_at");
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue