js.stub 330 B

123456789101112131415
  1. exports.up = function(knex, Promise) {
  2. <% if (d.tableName) { %>
  3. return knex.schema.createTable("<%= d.tableName %>", function(t) {
  4. t.increments();
  5. t.timestamp();
  6. });
  7. <% } %>
  8. };
  9. exports.down = function(knex, Promise) {
  10. <% if (d.tableName) { %>
  11. return knex.schema.dropTable("<%= d.tableName %>");
  12. <% } %>
  13. };