3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-18 23:09:59 +00:00
zeppelin/backend/src/migrations/1578445483917-CreateReminderCreatedAtField.ts

19 lines
528 B
TypeScript
Raw Normal View History

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