diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-05-11 09:18:42 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-05-11 09:18:42 +0000 |
commit | 667005d5ac72698503911c997fb3257e509147b5 (patch) | |
tree | e6b86d7d0a6b09f833ab3fb5a93e8a88e673a191 | |
parent | 934e8d1a6597f6e27ffda9238f8293f52c0e5162 (diff) | |
parent | 965b41769f878ba526f88761b06182e6a2e0f538 (diff) | |
download | gitlab-ce-667005d5ac72698503911c997fb3257e509147b5.tar.gz |
Merge branch 'dm-fix-mysql-failure' into 'master'
Fix MySQL build failure
Closes #32106
See merge request !11277
-rw-r--r-- | db/post_migrate/20170502101023_cleanup_namespaceless_pending_delete_projects.rb | 2 | ||||
-rw-r--r-- | spec/migrations/cleanup_namespaceless_pending_delete_projects_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/db/post_migrate/20170502101023_cleanup_namespaceless_pending_delete_projects.rb b/db/post_migrate/20170502101023_cleanup_namespaceless_pending_delete_projects.rb index 2d242da9ef8..ce52de91cdd 100644 --- a/db/post_migrate/20170502101023_cleanup_namespaceless_pending_delete_projects.rb +++ b/db/post_migrate/20170502101023_cleanup_namespaceless_pending_delete_projects.rb @@ -30,7 +30,7 @@ class CleanupNamespacelessPendingDeleteProjects < ActiveRecord::Migration private def pending_delete_batch - connection.exec_query(find_batch).map{ |row| row['id'] } + connection.exec_query(find_batch).map{ |row| row['id'].to_i } end BATCH_SIZE = 5000 diff --git a/spec/migrations/cleanup_namespaceless_pending_delete_projects_spec.rb b/spec/migrations/cleanup_namespaceless_pending_delete_projects_spec.rb index 0b8af5010ba..49e750a3f4d 100644 --- a/spec/migrations/cleanup_namespaceless_pending_delete_projects_spec.rb +++ b/spec/migrations/cleanup_namespaceless_pending_delete_projects_spec.rb @@ -15,7 +15,7 @@ describe CleanupNamespacelessPendingDeleteProjects do project = build(:empty_project, pending_delete: true, namespace_id: nil) project.save(validate: false) - expect(NamespacelessProjectDestroyWorker).to receive(:bulk_perform_async).with([[project.id.to_s]]) + expect(NamespacelessProjectDestroyWorker).to receive(:bulk_perform_async).with([[project.id]]) described_class.new.up end |