I am not able to lift sails version 0.9.9 with postgresql version 0.9.7
Here is the error message that I get
debug: Lowering sails...
/home/mandeep/iqr/thirstt/node_modules/sails-postgresql/lib/query.js:285
if(self._schema[key].type === 'text') caseSensitive = false;
^
TypeError: Cannot read property 'type' of undefined
at Object.sql.and (/home/mandeep/iqr/thirstt/node_modules/sails-postgresql/lib/query.js:285:27)
at /home/mandeep/iqr/thirstt/node_modules/sails-postgresql/lib/query.js:256:19
at Array.forEach (native)
at [object Object].Query.where (/home/mandeep/iqr/thirstt/node_modules/sails-postgresql/lib/query.js:195:24)
at /home/mandeep/iqr/thirstt/node_modules/sails-postgresql/lib/query.js:119:14
at Array.forEach (native)
at [object Object].Query._build (/home/mandeep/iqr/thirstt/node_modules/sails-postgresql/lib/query.js:115:32)
at [object Object].Query.find (/home/mandeep/iqr/thirstt/node_modules/sails-postgresql/lib/query.js:35:21)
at __FIND__ (/home/mandeep/iqr/thirstt/node_modules/sails-postgresql/lib/adapter.js:362:40)
at after (/home/mandeep/iqr/thirstt/node_modules/sails-postgresql/lib/adapter.js:506:7)
at /home/mandeep/iqr/thirstt/node_modules/sails-postgresql/lib/adapter.js:492:7
It was running fine earlier. Not sure what went wrong. I have tried removing node_modules
directory and doing a npm install
after npm cache clear
but still keep getting this error. I cannot upgrade to sails version 0.10 since its quite a big project and upgrade will be a really big effort. How can I fix this issue in the same version ? Any help will be appreciated.