| 1234567891011121314 |
- import { Knex } from "knex";
- export async function up(knex: Knex): Promise<any> {
- const hasExpireIn = await knex.schema.hasColumn("links", "expire_in");
- if (!hasExpireIn) {
- await knex.schema.alterTable("links", table => {
- table.dateTime("expire_in");
- });
- }
- }
- export async function down(): Promise<any> {
- return null;
- }
|