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

FK error on deleting item with children #117

Open
brunobuddy opened this issue May 31, 2024 · 0 comments
Open

FK error on deleting item with children #117

brunobuddy opened this issue May 31, 2024 · 0 comments
Assignees
Labels
bug Something isn't working question Further information is requested

Comments

@brunobuddy
Copy link
Contributor

With the npx add-manifest go to Owners and try to delete an Owner that has Cats. You will have the following error:

[Nest] 170274  - 05/31/2024, 4:38:38 PM   ERROR [ExceptionsHandler] SQLITE_CONSTRAINT: FOREIGN KEY constraint failed
QueryFailedError: SQLITE_CONSTRAINT: FOREIGN KEY constraint failed
    at Statement.handler (/home/brunobuddy/Codebases/case-app/case/packages/core/manifest/src/driver/sqlite/SqliteQueryRunner.ts:135:29)

I think it is more a question rather than a bug, at the end we will probably need to chose a behavior like CASCADE or RESTRICT for those relations, but we need also to define UX and defaults. What should be the default behavior ?

@brunobuddy brunobuddy added bug Something isn't working question Further information is requested labels May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants