dijkstra-backend-cloudron/node_modules/knex/lib/migrate/stub/js.stub

16 lines
312 B
Plaintext
Raw Normal View History

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