import * as Knex from "knex"; export async function up(knex: Knex): Promise { 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 { return null; }