Running drush updb to upgrade drupal core or other modules, puts the site in maintenance mode. I recently faced an issue (probably an edge case) where the site was stuck in maintenance mode after running updb in a pipeline of a containerized infrastructure. Here is the sequence of events:
- Run drush updb -y
- Container terminated (system failure or unknown reason)
- Re-attempt at drush updb
- drupal returns "no updates were required" (this tells me that the step 1 may have completed the update in the background?"
- Site remains in maintenance mode.
- I manually bring the site back online.
After all this it looked like the update was successful.
How do I ensure the integrity of the system when this happens without restoring a backup and running the updates again? When running subsequent drush updb that says "no updates required" does this guarantee the previous updates were successful.