Skip to content

Latest commit

 

History

History
6 lines (6 loc) · 1014 Bytes

File metadata and controls

6 lines (6 loc) · 1014 Bytes

Issues encountered

  1. When initially running the make migrations command, I was getting the error RuntimeWarning: Got an error checking a consistent migration history performed for database connection 'default': unable to open database file. This appears to be an issue to do with the permissions within the docker container. Changing the SQLite database location from /app/integrations/db.sqlite3 to /tmp/db.sqlite3 did the trick.
  2. Even after this the migrations script was running succesfully but making no changed to the actual database schema. I don't know what exactly was going on here but execing into the docker container and running poetry run python manage.py migrate worked.
  3. Trying to use bulk_create to create Forms more performantly we encounter the error ValueError: Can't bulk create a multi-table inherited model - for now I have left the object creation as a simple loop but with some more work there would no doubt be a workaround to make object creation more performant.