Skip to content

Migration guide

Felipe edited this page Mar 5, 2018 · 4 revisions

Migrating from hapi-sequelize to hapi-sequelizejs

  1. Uninstall hapi-sequelize:

npm uninstall --save hapi-sequelize

  1. Install hapi-sequelizejs:

npm install --save hapi-sequelizejs

  1. Update your server.register to require the new package:
server.register([
  {
      register: require('hapi-sequelizejs'),
      options: [...]
  }
]);
  1. Update your controllers to use the correct plugin name to get the DB instance:
request.server.plugins['hapi-sequelizejs']
Clone this wiki locally