summaryrefslogtreecommitdiff
path: root/lib/api/api.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2017-09-22 22:26:48 -0400
committerStan Hu <stanhu@gmail.com>2017-09-22 22:45:25 -0400
commit2e564ddfc7ac500b72051d56b9a6b37979296c0e (patch)
tree9e3bccd0b895032e2081ec917d993e96e350efdc /lib/api/api.rb
parent024d10b7adabe4ca2fc42107837367cb086fe75c (diff)
downloadgitlab-ce-2e564ddfc7ac500b72051d56b9a6b37979296c0e.tar.gz
Fix duplicate key errors in PostDeployMigrateUserExternalMailData migrationsh-fix-issue-38246
`email_provider` by default is NULL, and if a user had not logged the value would remain NULL. Upgrading to GitLab 10.0 would lead to a PG::UniqueViolation because the post-deploy migration would attempt to reinsert the entry because the NULL comparison between `users.email_provider` and `user_synced_attributes_metadata.email_provider` would never match. Closes #38246
Diffstat (limited to 'lib/api/api.rb')
0 files changed, 0 insertions, 0 deletions