Skip to content
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

🐛 Bug: Many-to-many relationships are not deleted when deleting a record #8366

Open
1 task done
jd7h opened this issue Apr 29, 2024 · 2 comments
Open
1 task done
Labels
Status: Reproducible Able to reproduce the issue based on the reporters' guideline.

Comments

@jd7h
Copy link

jd7h commented Apr 29, 2024

Please confirm if bug report does NOT exist already ?

  • I confirm there is no existing issue for this

Steps to reproduce ?

  1. Create a record with a many-to-many relationship
  2. Delete the record
  3. Create a new record. This new record will have the same id as the record we just deleted. The new record will have the same many-to-many relationship as the old, deleted record with the same id.

Desired Behavior

The many-to-many relationships of a record should also be deleted when we delete the record.

Project Details

Node: v20.11.1
Arch: x64
Platform: linux
Docker: true
RootDB: sqlite3
PackageVersion: 0.205.1

Attachments

Creating a record:
2024-04-29_17-48-noco-debug-1

Deleting the record via the UI:
2024-04-29_17-52-noco-debug-3

Creating a new record with the same ID:
2024-04-29_17-52-noco-debug-4

New record has the same many-to-many relationships as the old deleted record:
2024-04-29_17-53-noco-debug-5

@dstala dstala added the Status: Reproducible Able to reproduce the issue based on the reporters' guideline. label Apr 30, 2024
@dstala
Copy link
Member

dstala commented Apr 30, 2024

issue noticed with sqlite root-db. no seen with pg as root db

@yorickvP
Copy link

sqlite3 needs PRAGMA foreign_keys=on; after every database open for foreign key constraints / ON DELETE CASCADE to work. Maybe that would help?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Reproducible Able to reproduce the issue based on the reporters' guideline.
Projects
Status: 🏌️ Open
Development

No branches or pull requests

3 participants