Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
sync does not create tables when used with sqlite (from tutorial) #1472
I'm following the tutorial code on the site and when I'm using sqlite with an in-memory database, it doesn't create any tables.
Here's how my code looks: https://gist.github.com/omouse/22b7cfbb15d5e0ff5288
The package.json includes sqlite and sequelize. I'm not sure what the bug could be.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
@omouse yes you have to chain the calls :)
Internally sync(force: true) drops all tables and rebuilds - So when you do your save() call the table doesnt exist yet (hence it fails).