16 lines
322 B
Plaintext
Raw Permalink Normal View History

export const up = async (knex) => {
<% if (d.tableName) { %>
await knex.schema.createTable("<%= d.tableName %>", function(t) {
t.increments();
t.timestamp();
});
<% } %>
};
export const down = async (knex) => {
<% if (d.tableName) { %>
await knex.schema.dropTable("<%= d.tableName %>");
<% } %>
};