mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-18 07:35:02 +00:00
18 lines
566 B
TypeScript
18 lines
566 B
TypeScript
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");
|
|
}
|
|
|
|
}
|