Skip to content
This repository was archived by the owner on Mar 30, 2022. It is now read-only.

rafaeltab/iMal_API

Build Status rafaeltab Total alerts Language grade: JavaScript Coverage Badge

iMAL2.0

Soon to be renamed to kurabu inside code hopefully some time :)

migrations

  • edit or create some models
    • if model was added add it to src/models/index.ts
  • 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.json from earlier under the environment staging
  • run npm sequelize-cli db:migrate --env staging
  • test if everything works

About

The api used in the imal project

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Contributors 2

  •  
  •