diff options
author | Michael Kozono <mkozono@gmail.com> | 2017-11-24 10:04:44 -0800 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2017-12-01 15:26:42 -0800 |
commit | 3694fe0f3d43619174878805ba09f0943e1dbaad (patch) | |
tree | 7a98c4ed0a69a50263b4a3b0061b49f6b4b36a18 /lib/gitlab/background_migration/populate_untracked_uploads.rb | |
parent | 6e36452e96139658ff8eae88209710438dd14eba (diff) | |
download | gitlab-ce-3694fe0f3d43619174878805ba09f0943e1dbaad.tar.gz |
Don’t quote `NOW()` for created_at column
To fix for MySQL.
Diffstat (limited to 'lib/gitlab/background_migration/populate_untracked_uploads.rb')
-rw-r--r-- | lib/gitlab/background_migration/populate_untracked_uploads.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/background_migration/populate_untracked_uploads.rb b/lib/gitlab/background_migration/populate_untracked_uploads.rb index f06b4ac1940..ea04484c6a1 100644 --- a/lib/gitlab/background_migration/populate_untracked_uploads.rb +++ b/lib/gitlab/background_migration/populate_untracked_uploads.rb @@ -204,7 +204,7 @@ module Gitlab file.to_h.merge(created_at: 'NOW()') end - Gitlab::Database.bulk_insert('uploads', rows) + Gitlab::Database.bulk_insert('uploads', rows, disable_quote: :created_at) end def drop_temp_table_if_finished |