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

Improve database import #50

Open
simonalveteg opened this issue Aug 3, 2023 · 0 comments
Open

Improve database import #50

simonalveteg opened this issue Aug 3, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@simonalveteg
Copy link
Owner

If a row has been removed from one of the tables all of the relations will be wrong, since the primary key gets incremented for each added entity. Removing no32 would mean that 33->32 in that table, while all other tables are unaware of this change.

Inserting entity returns it's key, use this key to update references to the old key in other tables where applicable.

@simonalveteg simonalveteg added the bug Something isn't working label Aug 3, 2023
@simonalveteg simonalveteg self-assigned this Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant