Skip to content

Migration guide

Felipe edited this page Sep 30, 2016 · 4 revisions

Warnings

This fork is based on the pre-release v3.0.1 from hapi-sequelize.

Versions before the original v3.0.1 are not supported by hapi-sequelizejs.

Migrating from hapi-sequelize v3.0.1 to hapi-sequelizejs v0.0.2

Uninstall hapi-sequelize:

npm uninstall --save hapi-sequelize

Install hapi-sequelizejs:

npm install --save hapi-sequelizejs

Update your server.register to require the new package:

server.register([
  {
      register: require('hapi-sequelizejs'),
      options: [...]
  }
]);

Update your controllers to use the correct plugin name to get the DB instance:

request.server.plugins['hapi-sequelizejs']

Clone this wiki locally