I am working on a project with custom entity type. My module works fine in my local environment. But when I deployed to my staging site, things are strange.
For instance, I tried to change my entity definition and then run the drush command:
drush entity:updates -y
The command gave me positive response:
The following updates are pending: dharmasun_payment entity type : The Field 1 field needs to be installed. The Field 2 field needs to be installed. // Do you wish to run all pending updates?: yes. Finished performing updates
Except the database was not changed at all. So when I re-run the command, it gives me the exact same output.
The staging site might have some different module installed than my development environment. But I cannot make breaking change on the staging platform (or my workmates would be mad).
- How do I begin to debug this? Is there anyway I can get better log messages with the
- Or is there any alternative way to update entity definition and make changes to database?