Aye-Bee-See / sqlite-express-api

0 stars 0 forks source link

Different environments/databases #12

Open paxblueribbon opened 5 months ago

paxblueribbon commented 5 months ago

Create separate environments for production, development, destructive.

Each should have their own database and destructive should have sequelize.sync({ force: true}) instead of sequelize.sync({ }) inside of sql-database.js

mycwnet commented 4 months ago

When we begin doing this we should move to the recommended sequelize method of running the db which is documented in migrations https://sequelize.org/docs/v6/other-topics/migrations/ this also permits changing the seeding system