Commit graph

4 commits

Author SHA1 Message Date
GitLab Bot
127ab291e2 Add latest changes from gitlab-org/gitlab@master 2021-07-02 06:07:28 +00:00
GitLab Bot
d6348d22dd Add latest changes from gitlab-org/gitlab@master 2020-06-24 09:08:32 +00:00
GitLab Bot
886c682334 Add latest changes from gitlab-org/gitlab@master 2019-10-20 21:06:17 +00:00
Nick Thomas
6ddefe7cad
Correctly handle data-loss scenarios when encrypting columns
If the EncryptColumns background migration runs in a sidekiq with a
stale view of the database schema, or when the purported destination
columns don't actually exist, data loss can result. Attempt to work
around these issues by reloading schema information before running
the migration, and raising errors if the model reports that any of its
source or destination columns are missing.
2018-11-27 18:24:18 +00:00