You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
330 B
Plaintext
16 lines
330 B
Plaintext
|
|
exports.up = function(knex, Promise) {
|
|
<% if (d.tableName) { %>
|
|
return knex.schema.createTable("<%= d.tableName %>", function(t) {
|
|
t.increments();
|
|
t.timestamp();
|
|
});
|
|
<% } %>
|
|
};
|
|
|
|
exports.down = function(knex, Promise) {
|
|
<% if (d.tableName) { %>
|
|
return knex.schema.dropTable("<%= d.tableName %>");
|
|
<% } %>
|
|
};
|