Soon to be renamed to kurabu inside code hopefully some time :)
- edit or create some models
- if model was added add it to
src/models/index.ts
- if model was added add it to
- make sure there is a config.json file present in
src/database/config- if not present check sequelize docs on what format it has and create it by hand
- make sure that development is set to a local database if you don't make sure to change the env used in the next step
- run
npx sequelize-cli db:migrate --env development - run
npm run db:addmigration
Your local db should not be up-to-date
After commiting and having the pull request started
- ensure that the staging database is also in the
config.jsonfrom earlier under the environmentstaging - run
npm sequelize-cli db:migrate --env staging - test if everything works