Upgrading sequelize@1.5.0-beta-2 to sequelize@3.30.1

25 views
Skip to first unread message

Rishabh Singh

unread,
Feb 22, 2017, 3:10:04 AM2/22/17
to Sequelize
Hi, sequelize is being used in a project which had a development version of sails. I had to upgrade sails to a new version to run some other modules smoothly.

The version info before upgrade: node | nodejs : 0.10.37 npm : 4.1.2 sails : sa...@0.0.0-1 sequelize : sequ...@1.5.0-beta-2
After Upgrade: node | nodejs : 6.9.5 npm : 3.10.10 sails : sa...@0.12.11 sequelize : sequ...@3.30.1
After Upgrading sails i had to update many modules but it was successfully lifted on port 443. But the sequelized models used for backbone components does not work as expected.
After a lot of debugging i can see when upgrading sequ...@1.5.0-beta-2 to sequ...@3.30.1, the issue is with define prototype in sequelize.js of new sequelize node module which is returning a tiny model object only(see ss sequelize-3.30.1-model object.png) instead of factory object in (see ss Sequelize-1.5.0-beta-2-model object.png). I wanted to know how can i get the factory object back in new sequelize version?
Sequelize-1.5.0-beta-2-model object.png
Sequelize-3.30.1-model object.png
Reply all
Reply to author
Forward
0 new messages