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:
roflmaoqwerty 2020-01-08 14:29:49 +11:00
parent 4e1b135724
commit 17decd09d5
4 changed files with 44 additions and 6 deletions

View file

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