typescript-express-sequelize icon indicating copy to clipboard operation
typescript-express-sequelize copied to clipboard

sync with database

Open chavda-bhavik opened this issue 3 years ago • 1 comments

I configured database config.json file, but sequelize tables appusers and languages are not creating, I need to write sequelize.sync() in src/sql/models/_index.ts. Is it an issue or am I missing something?

chavda-bhavik avatar Nov 02 '20 13:11 chavda-bhavik

I had the same problem, and resolved it by using node version 11.15.0.

If you are using NVM, follow the steps below;

nvm list-remote
nvm install v11.15.0
nvm use 11
rm -rf  node_modules 
npm install 
npm sqlz:migrate

ChinmayPatel avatar May 05 '21 19:05 ChinmayPatel