Bug report #17992
DB Manager Versioning: _current view lacks primary key
|Affected QGIS version:||3.3(master)||Regression?:||No|
|Operating System:||Easy fix?:||Yes|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||25888|
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 the `id`, 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.