Upload FK constraint prevents annotation_project deletion
See original GitHub issueProblem description
When an annotation project has an upload with a matching annotation_project_id
, the annotation project cannot be deleted.
Replication Steps
- Create an annotation project with a corresponding upload
- Try to delete project
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
foreign key prevents deletion of data in mysql - Stack Overflow
An interesting question :) I think the problem is caused by the so called "referential integrity". That means, that you are not able...
Read more >Foreign Key Constraint | CockroachDB Docs
The `FOREIGN KEY` constraint specifies a column can contain only values exactly matching existing values from the column it references.
Read more >Solved: Deleting data with existing foreign key constraint...
Solved: Hi, I have a Sql Server database where I need to populate the data in a set of lookup tables but there...
Read more >Primary and Foreign Key Constraints - SQL Server
If the Database Engine encounters NO ACTION, it stops and rolls back related CASCADE, SET NULL and SET DEFAULT actions.
Read more >The DELETE statement conflicted with the REFERENCE ...
You are trying to Delete the record from a Table which has a reference in another Table. Here REFERENCE constraint is ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
To clarify the reason I called this out is that projects have an
on delete set null
, so I wasn’t sure if we wanted uploads to have an independent existence. Assuming they shouldn’t, I think we’re on the same page thenAlso delete created scenes and the cogified scene data