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

14 lines
262 B
Plaintext
Raw Normal View History

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