Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTerence Wayburne
Full Stack JavaScript Techdegree Graduate 31,428 PointsMy database disappears
Every so often - thought it was when i would refresh, but this isnt it - my data will wipe itself clean. I go check on my SQLite programme and all my articles have gone. The app works just fine otherwise, reading and writing articles to the DB.
1 Answer
Seth Lewis
Full Stack JavaScript Techdegree Graduate 18,191 PointsTry these steps. I had a similar but not exact issue and this (so far) has cleared it up:
Go to bin => www.js => ~line 29. Set sequelize.sync({ force: false }) instead of "true"
sequelize.sync({ force: false }).then(() => {
server.listen(port);
});
Best of luck,
SL