15 lines
263 B
Plaintext
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 %>")
|
||
|
<% } %>
|