You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for sharing it, i was trying to look for a waterline replacement with sequelize and i found it amazing, nice work.
i've trying run it and i realize that models was not generating and there's no sequelize syncronization in the hook file, and i've fixed adding these lines,
Maybe it should be added? or maybe store a sync property in the config/connections.js
Also, i really would like to move forward with this sequelize approach in production, but the waterline have me saving a lot time with their blueprints, which won't work with sequelize, but maybe it worth to do a fork from blueprints hook implementation to work with sequelize, what do you think?
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Yepp, this is a missing part. I totally forgot about it, because I usually use db-migrate to manage the database with SQL files. (I use lot of triggers ... )
I will put these lines into the project and mentioned it in the article too. Thank your help!
The blueprints are much bigger task. For me, it is not necessary right know, so I don't plan to do it, but I think It can be rewrite.
If you disable the original hook in .sailsrc and create your own, it can work, but create some action in your controllers maybe less work than rewrite the hook ...
Thanks for sharing it, i was trying to look for a waterline replacement with sequelize and i found it amazing, nice work.
i've trying run it and i realize that models was not generating and there's no sequelize syncronization in the hook file, and i've fixed adding these lines,
Maybe it should be added? or maybe store a sync property in the config/connections.js
Also, i really would like to move forward with this sequelize approach in production, but the waterline have me saving a lot time with their blueprints, which won't work with sequelize, but maybe it worth to do a fork from blueprints hook implementation to work with sequelize, what do you think?
Thanks in advance.
The text was updated successfully, but these errors were encountered: