You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
django.db.utils.OperationalError: cannot ALTER TABLE "geojson_geometries" because it has pending trigger events
I've found that calling refresh_geojson_geometries() inside a RunSQL operation is pretty fragile because the function truncates a table and disturbs the per-migration transaction. Things usually work if you isolate the single migration operation involving that function into its own file.
That said, 7.6 has already shipped, so we can't easily insert a new migration into the middle of the history. We could cheat a little bit and just move this AddField operation into the previous migration and a comment explaining what/why:
From a fully migrated 7.6/8.0.dev db:
I've found that calling
refresh_geojson_geometries()
inside a RunSQL operation is pretty fragile because the function truncates a table and disturbs the per-migration transaction. Things usually work if you isolate the single migration operation involving that function into its own file.That said, 7.6 has already shipped, so we can't easily insert a new migration into the middle of the history. We could cheat a little bit and just move this AddField operation into the previous migration and a comment explaining what/why:
arches/arches/app/models/migrations/10799_geojsongeometry_featureid.py
Lines 188 to 192 in 8ed87f3
The text was updated successfully, but these errors were encountered: