question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Upload FK constraint prevents annotation_project deletion

See original GitHub issue

Problem 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:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jisantuccommented, Feb 29, 2020

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 then

0reactions
jisantuccommented, Mar 6, 2020

Also delete created scenes and the cogified scene data

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found