Changes

Jump to: navigation, search

Balrog

171 bytes added, 21:13, 22 May 2018
Schema Upgrades
=== Schema Upgrades ===
If you need to do a schema change you '''must''' ensure that either the current production code can run with your schema change applied, or that your new code can run with the old schema. Code and schema changes '''cannot''' be done at the same instant, so you must be able to support one of these scenarios. Generally, additive changes (column or table additions) should do the schema change first, while destructive changes (column or table deletions) should do the schema change second. You can simulate the upgrade with your local Docker containers to verify which is right for you.
 
A quick way to find out if you have a schema change is to diff the current tip of the master branch against the currently deployed tag, eg:
tag=REPLACEME
git diff $tag
When you file the deployment bug (see below), include a note about the schema change in it. Something like:
Canmove, confirm
6,438
edits

Navigation menu