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 (ifzorgrank.pgsql
does not exists, the script will fetch the tables frommq_zorgrank db
on the Cloud SQL staging instance).
Notes:
- Delete
zorgrank.pgsql
when the structure of these tables has changed on staging and repeatmake 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 theuser
namespace.