Issue #2938951 by tstoeckler, amateescu, alexpott: The primary key is not correctly re-created when updating the storage definition of an identifier field (cherry picked from commit 383c6ee5)