- When initially running the
make migrationscommand, I was getting the errorRuntimeWarning: 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.sqlite3to/tmp/db.sqlite3did the trick. - 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 runningpoetry run python manage.py migrateworked. - Trying to use
bulk_createto create Forms more performantly we encounter the errorValueError: 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.