-
- Downloads
HOLI-1399: change database to postgres
In order to make this work I had to work around things: * psycopg2 > 2.9.0 is incompatible with Django 2.2, therefore used 2.8.6 (see https://stackoverflow.com/a/68025007/1242529) * migrations failed for a change from duration to datetime (with timezone). I modified migration history as we'll start with an empty DB anyways so fiddling with migration history shouldn't be an issue * there was a duplicate constraint 'reporter_moderated_object_constraint' of which I renamed one to 'reporter_moderation_report_constraint' To validate this MR locally, make sure you clean up your local env, e.g. by running: ```sh python okuna-cli.py down-services-only python okuna-cli.py clean ``` Then, stop any running docker containers related to Okuna. Subsequently, running ``` python okuna-cli.py up-services-only ``` should have Okuna start with an empty DB within postgres and successfully auto-applying migrations.
Showing
- .docker/api/Dockerfile 3 additions, 5 deletions.docker/api/Dockerfile
- .docker/scheduler/Dockerfile 3 additions, 4 deletions.docker/scheduler/Dockerfile
- .docker/worker/Dockerfile 3 additions, 4 deletions.docker/worker/Dockerfile
- docker-compose-full.yml 4 additions, 5 deletionsdocker-compose-full.yml
- docker-compose-services-only.yml 4 additions, 5 deletionsdocker-compose-services-only.yml
- okuna-cli.py 24 additions, 17 deletionsokuna-cli.py
- openbook/settings.py 25 additions, 23 deletionsopenbook/settings.py
- openbook_moderation/migrations/0001_initial.py 1 addition, 1 deletionopenbook_moderation/migrations/0001_initial.py
- openbook_moderation/migrations/0007_auto_20190521_2041.py 0 additions, 7 deletionsopenbook_moderation/migrations/0007_auto_20190521_2041.py
- openbook_moderation/migrations/0008_auto_20190521_2107.py 0 additions, 7 deletionsopenbook_moderation/migrations/0008_auto_20190521_2107.py
- requirements.txt 1 addition, 1 deletionrequirements.txt
- templates/.docker-compose.env 9 additions, 7 deletionstemplates/.docker-compose.env
- templates/.env 3 additions, 3 deletionstemplates/.env
- templates/.okuna-cli.json 1 addition, 1 deletiontemplates/.okuna-cli.json
Loading
Please register or sign in to comment