File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ download_latest_db_dump() {
118
118
echo " Restoring database from dump..."
119
119
docker compose cp " $db_temp_dir /$DUMP_FILENAME " " db:/tmp/$DUMP_FILENAME "
120
120
docker compose exec db bash -c " pg_restore -U $DB_USER -d $DB_NAME -v --no-owner --no-privileges /tmp/$DUMP_FILENAME " || true
121
+ # apply any migrations newer than our dumped database
122
+ docker compose exec web bash -c " ./manage.py migrate"
121
123
# update the database to delete all rows from socialaccount_social app, which need to be configured differently locally
122
124
echo " Deleting all rows from socialaccount_socialapp table and setting fake passwords..."
123
125
docker compose exec web bash -c " ./manage.py shell -c 'from allauth.socialaccount.models import SocialApp; SocialApp.objects.all().delete()'"
You can’t perform that action at this time.
0 commit comments