I am confused about a few things to do with db updates.
I have a messed up site caused by commerce and importing configuration. I want to re-run the commerce updates to ensure that they were done (as they most likely have not been).
I see a simple update function in commerce.install: commerce_update_8201.
when i do:
drush ev "echo drupal_get_installed_schema_version('commerce');"
i get 8201. i then run:
drush ev "echo drupal_set_installed_schema_version('commerce', 1);"
and i can verify in the key_value table that this has been set to 1.
but now, when i run drush updb - it states: [success] No pending updates.
when i go to updates.php i get:
- Some of the pending updates cannot be applied because their dependencies were not met.
- No pending updates.
Next I try to force the update by running:
drush ev "module_load_install('commerce'); echo commerce_update_8201();"
I added an "echo" in the update script so that i could tell the code was run (otherwise there is no output and hard to tell anything happened). The code does get run by that last drush command.
But the system.schema is not updated in the db.
Does all of this sound like expected outcome. There sounds like at least a few bugs in Drupal core here.