import Knex from 'knex';
import config from '../../config/config.json';
const knex = Knex.initialize(config.bookshelf.postgresql);

export default function () {
  knex.migrate.latest(config.bookshelf.migrations)
      .then(function () {
        knex.destroy();
      });
}

import Knex from 'knex';
import config from '../../config/config.json';
const knex = Knex(config.bookshelf.postgresql);

export default function () {
  knex.migrate.latest(config.bookshelf.migrations)
      .then(function () {
        knex.destroy();
      });
}

Stop using the deprecated knex.initialize
Stop using the deprecated knex.initialize
