[ARVADOS] updated: 3fa179311344ed08b9bb8df113fb7901eac13ee7
git at public.curoverse.com
git at public.curoverse.com
Wed Jan 14 11:24:59 EST 2015
Summary of changes:
services/api/db/migrate/20141208174653_collection_file_names.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
via 3fa179311344ed08b9bb8df113fb7901eac13ee7 (commit)
from ae23b3770a1df1e952265c2675c6b17e6c3060ba (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 3fa179311344ed08b9bb8df113fb7901eac13ee7
Author: Radhika Chippada <radhika at curoverse.com>
Date: Wed Jan 14 11:24:20 2015 -0500
4523: update migration script to use execute instead of update_sql so that output is not printed to console.
diff --git a/services/api/db/migrate/20141208174653_collection_file_names.rb b/services/api/db/migrate/20141208174653_collection_file_names.rb
index fdcd95f..0aeb3d4 100644
--- a/services/api/db/migrate/20141208174653_collection_file_names.rb
+++ b/services/api/db/migrate/20141208174653_collection_file_names.rb
@@ -7,7 +7,7 @@ class CollectionFileNames < ActiveRecord::Migration
act_as_system_user do
Collection.find_each(batch_size: 20) do |c|
file_names = c.manifest_files
- update_sql "UPDATE collections
+ ActiveRecord::Base.connection.execute "UPDATE collections
SET file_names = #{ActiveRecord::Base.connection.quote(file_names)}
WHERE uuid = '#{c.uuid}'"
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list