-
Notifications
You must be signed in to change notification settings - Fork 41
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
Enforce uniqueness of primary key fields at import/commit time #307
Comments
Done except there is one more edge case that hasn't been dealt with and could do with some more work:
|
I'd suggest we add some code to check for dupe PKs at commit time, in the case that the WC isn't enforcing that for us. Throwing a useful error seems like it would adequately fix this problem, something like
|
to add to this, even if the WC or import source does normally enforce uniqueness of PKs, you can bypass that by doing |
GPKG only supports integer primary keys, whereas a Kart dataset already supports string primary keys.
We should be able to adapt one to the other in some way so that you can have a GPKG working copy that is backed by a dataset with string keys - perhaps a dummy integer primary key will be added, and the original string primary key will present in the working copy but not in the primary key column.
The text was updated successfully, but these errors were encountered: