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

15 lines
263 B
Plaintext

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