14 lines
262 B
Plaintext
14 lines
262 B
Plaintext
|
|
||
|
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 %>"
|
||
|
<% } %>
|