mirror of
https://github.com/knex/knex.git
synced 2025-07-08 09:31:40 +00:00
16 lines
295 B
Plaintext
16 lines
295 B
Plaintext
'use strict';
|
|
|
|
exports.up = (knex, Promise) ->
|
|
<% if (d.tableName) { %>
|
|
knex.schema.create-table "<%= d.tableName %>", (t) ->
|
|
t.increments!
|
|
t.timestamp!
|
|
<% } %>
|
|
|
|
|
|
exports.down = (knex, Promise) ->
|
|
<% if (d.tableName) { %>
|
|
knex.schema.drop-table "<%= d.tableName %>"
|
|
<% } %>
|
|
|