import * as Knex from "knex"; <% if (d.tableName) { %> export async function up(knex: Knex): Promise { return knex.schema.createTable("<%= d.tableName %>", (t: Knex.AlterTableBuilder) => { t.increments(); t.timestamps(); }); } <% } else { %> export async function up(knex: Knex): Promise { } <% } %> <% if (d.tableName) { %> export async function down(knex: Knex): Promise { return knex.schema.dropTable("<%= d.tableName %>"); } <% } else { %> export async function down(knex: Knex): Promise { } <% } %>