2021-08-21 21:34:30 +03:00

16 lines
322 B
Plaintext

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 %>");
<% } %>
};