Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-08-31 16:50:24 +0300
committerAlexis Reigel <mail@koffeinfrei.org>2017-09-05 13:18:33 +0300
commit7f45dd92eaf70ec624d639f9d0354b6f3c512dc6 (patch)
tree57c0dc9255633abd5ae4a2f650ba90f9a1e18b58 /db/post_migrate
parentea4604e56da968f36427374a3e46b7625eded067 (diff)
destroy all signatures and add with default value
To avoid having to implement legacy code handling for the obsolete `verified_signature` attribute and to avoid any race conditions during the zero-downtime-deployment we do the following: 1. Destroy all records 2. Migration: Use add_column_with_default to add the new attribute and update the verification_status values on records created between 1. and 2. 3. Deploy the new code 4. Post migration: Destroy all records Like this we make sure that at no point there is a record with a `nil` value for the new `verification_status` attribute.
Diffstat (limited to 'db/post_migrate')
0 files changed, 0 insertions, 0 deletions