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
DB Manager Versioning: _current view lacks primary key #25888
Comments
Author Name: Giovanni Manghi (@gioman) PLEASE UPDATE THE AFFECTED VERSION!
|
Author Name: Loïc BARTOLETTI (@lbartoletti) Should be closed? Now you can define the name of PK (and others) |
Author Name: Paolo Cavallini (@pcav) AFAICT this is still valid: in the view simply there is not a PK, it's not a matter of its name. |
Author Name: Giovanni Manghi (@gioman) Paolo Cavallini wrote:
checked on master? if yes change the affected version. |
Author Name: Paolo Cavallini (@pcav) Confirmed
|
[dbmanager] add primary key to the view created by versioning plugin (fix #25888)
[Backport release-3_4] [dbmanager] add primary key to the view created by versioning plugin (fix #25888)
Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 17992
Affected QGIS version: 3.3(master)
Redmine category:db_manager
The Versioning / Change logging automatically creates a view with the current elements. Unfortunately, in the view it is not included the
id_hist
, but only theid
, which can be duplicated, e.g. in case of a split polygon.As a consequence, the view cannot be loaded.
I suggest to simply add
id_hist
to the view.The fix can be easily backported to 2.18.
The text was updated successfully, but these errors were encountered: