mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-18 23:09:59 +00:00
18 lines
528 B
TypeScript
18 lines
528 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");
|
|
}
|
|
}
|