-
Notifications
You must be signed in to change notification settings - Fork 45
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
Cannot delete or update a parent row when deleting tables that have downstream merge tables #931
Comments
Couple quick things I see. In the first Attempt:
In thesecondAttempt:
|
Thanks @samuelbray32 That clears my confusion about deleting merge tables! |
My understanding is that there was another user declaring a table preventing deletion. That is solved now so deletion should be possible. Please reopen if it continues to be a problems. |
Hi @CBroz1 @edeno I didn't see a reopen button on this page, but after pulling the latest spyglass, I'm still running into this integrity error 1217 no matter which table I attempted to delete (I've tried "cautious delete" with Nwbfile(), Session(), and "delete_downstream_merge" with PostionOutput()). Could it be due to my restricted user permissions in our SQL database? |
Thanks so much @CBroz1 ! Didn't mean to keep commenting under this closed case, but would it be possible to give me admin-level privileges for now so I could delete a few tables that need to be replaced with the newly-converted NWB data? I will make sure not to delete other people's data/table, and keep you posted when I don't need the privilege anymore so we could revert to a regular user. Thanks a lot! |
When trying to either delete the Nwbfile() table (so as to re-insert data for a certain session) or PositionOutput table, it raises the error "'Cannot delete or update a parent row: a foreign key constraint fails'".
To Reproduce
Steps to reproduce the behavior:
Or if I tried to directly delete from the PositionOutput table via
I'd get:
How could I delete the cascade of tables that depend on the parent table? I need to delete these entries in order to rerun the analyses as I found mistakes in previous runs. Thanks for any insight!
The text was updated successfully, but these errors were encountered: