I have a custom entity defined in a module. I wanted to change the label of the ID field so I made some changes in baseFieldDefinitions function.

When I ran \Drupal::entityDefinitionUpdateManager()->applyUpdates(); the ID field in the database was recreated but the field was missing the AUTO_INCREMENT property. Because of that, I was unable to create new entities.

I was able to "fix" this by reinstalling the module.

Comments

mariusilie created an issue. See original summary.

amateescu’s picture