File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,6 +35,18 @@ echo "Running Datatracker checks..."
3535
3636# Migrate, adjusting to what the current state of the underlying database might be:
3737
38+ # On production, the blobdb tables are in a separate database. Manipulate migration
39+ # history to ensure that they're created for the sandbox environment that runs it
40+ # all from a single database.
41+ echo " Ensuring blobdb relations exist..."
42+ /usr/local/bin/python ./ietf/manage.py migrate --settings=settings_local --fake blobdb zero
43+ if ! /usr/local/bin/python ./ietf/manage.py migrate --settings=settings_local blobdb; then
44+ # If we are restarting a sandbox, the migration may already have run and re-running
45+ # it will fail. Assume that happened and fake it.
46+ /usr/local/bin/python ./ietf/manage.py migrate --settings=settings_local --fake blobdb
47+ fi
48+
49+ # Now run the migrations for real
3850echo " Running Datatracker migrations..."
3951/usr/local/bin/python ./ietf/manage.py migrate --settings=settings_local
4052
You can’t perform that action at this time.
0 commit comments