ts.stub 408 Bytes
import * as Knex from "knex";

exports.up = function (knex: Knex): Promise<any> {
    <% if (d.tableName) { %>
    return knex.schema.createTable("<%= d.tableName %>", function (t) {
        t.increments();
        t.timestamps();
    });
    <% } %>
};

exports.down = function (knex: Knex): Promise<any> {
    <% if (d.tableName) { %>
    return knex.schema.dropTable("<%= d.tableName %>");
    <% } %>
};