Updating schema version with drush in Drupal 8

Submitted by twfahey on Mon, 09/10/2018 - 08:57

Occasionally when developing new updates for modules, the "schema version" has to be reset back if the local update code failed for some reason. In Drupal 7, this was a straightforward change to the `system` table, where each module was clearly listed with a `schema_version` column that could be changed via Pancakes relatively quickly. In Drupal 8, the approach is slightly different. You can find the value of each module schema in the `key_value` table, anything under the collection `system.schema`.