12345678910111213141516 |
- import * as Knex from "knex";
- exports.up = function (knex: Knex): Promise<any> {
- <% if (d.tableName) { %>
- return knex.schema.createTable("<%= d.tableName %>", function (t) {
- t.increments();
- t.timestamps();
- });
- <% } %>
- };
- exports.down = function (knex: Knex): Promise<any> {
- <% if (d.tableName) { %>
- return knex.schema.dropTable("<%= d.tableName %>");
- <% } %>
- };
|