Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 904 Bytes

development.md

File metadata and controls

16 lines (10 loc) · 904 Bytes

Local Postgres instance

Set up a local database:

make setup-development-db

This is:

  • spinning up a PostgreSQL instance
  • importing tables that are provided by the cronjob from zorgrank.pgsql in the root of the project (if zorgrank.pgsql does not exists, the script will fetch the tables from mq_zorgrank db on the Cloud SQL staging instance).

Notes:

  • Delete zorgrank.pgsql when the structure of these tables has changed on staging and repeat make all.
  • It's also possible to make a copy of the cronjob tables from the test instance, in this case you have to run 'make clone-test` first. This is for instance necessary when you are working on the cronjob and you want to inspect the results in the api.
  • There are migrations for tables that are not provided by the zorgrank.pgsql script (e.g. event table), migrations are part of the start function in the user namespace.