GispoCoding / qaava

QGIS toolbox for land use planners in Finland. Kaavoittajan työkalut QGIS-lisäosana. NOT UPDATED!
GNU General Public License v2.0
4 stars 3 forks source link

Cascade delete #22

Closed SannaJokela closed 3 years ago

SannaJokela commented 3 years ago

Foreign key constraint error for many-to-many relations when trying to delete features. Throws an error like:

PostGIS error while deleting features: ERROR: update or delete on table "maankayttoalue" violates foreign key constraint "maankayttoalue_fk" on table "many_maankayttoalue_has_many_kaavamaarays" DETAIL: Key (uuid)=(ec841bd0-f275-4431-9158-e081d5884ece) is still referenced from table "many_maankayttoalue_has_many_kaavamaarays".

This affects both asemakaava and yleiskaava QGIS projects and all spatial layers and all relations.

SannaJokela commented 3 years ago

@Joonalai now here

SannaJokela commented 3 years ago

I think this has been fixed? At least does not give error anymore. Closing this