-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deleting data use case issues #7 #174
Comments
adding |
but.. that trigger function is generated by the meta-projects recursive scripts.. |
SOoo, if I get it well, the solution would be to add a trigger on qwat_od.meter to delete meter_reference on delete. @3nids Can you confirm that I get it well ? |
Same problem occurs with deleting from vw_element_subscriber
I guess that we have a general issues with reference_* logic and trigger generation process |
Yep exactly. |
Another one on pipes: Deleting a pipe means first removing only fk_renference to it on other pipes, and then deleting it. Ther is no yet a delete trigger for pipes, should we add one? |
PR in qwat/qwat-data-model#158 |
In the idea of finalizing the demo data sample to v1.2.1 model version, I continued the work started here #2
Removing meters via vw_element_meter
delete from qwat_od.vw_element_meter a where NOT a.geometry && (st_makebox2d(st_makePoint(559144, 143502), st_makepoint(561817, 140796)))
will throw fk constraint errors on meter_reference table
delete from qwat_od.vw_element_meter a where NOT a.geometry && (st_makebox2d(st_makePoint(559144, 143502), st_makepoint(561817, 140796)))
ft_element_meter_delete seem to miss the cascading delete for meter_reference table
The text was updated successfully, but these errors were encountered: