Skip to content

Document stale schema on 16.2 upgrade

Marius Bobin requested to merge 427489-document-upgrade-bug into master

What does this MR do and why?

See #427489 (closed) for more details, but this problem occurs only on no-downtime deployments.

Active Record caches the database schema in memory and it doesn't include the columns that have non-changed database values in the insert statements. The migrations are executed after the deployment and the schema is stale, needing an additional restart to refresh it.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #427489 (closed)

Edited by Marius Bobin

Merge request reports