projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '20325-jquery-rails-upgrade'. Refs #20325
[arvados.git]
/
services
/
api
/
script
/
populate-file-info-columns-in-collections.rb
diff --git
a/services/api/script/populate-file-info-columns-in-collections.rb
b/services/api/script/populate-file-info-columns-in-collections.rb
index b0bc5a21a095ed496189c33aa4b270aa54f3e4ed..f7cb024b266a048d5cc1b60db2234242001eab95 100755
(executable)
--- a/
services/api/script/populate-file-info-columns-in-collections.rb
+++ b/
services/api/script/populate-file-info-columns-in-collections.rb
@@
-70,7
+70,7
@@
require "group_pdhs"
def main
distinct_pdh_count = ActiveRecord::Base.connection.exec_query(
def main
distinct_pdh_count = ActiveRecord::Base.connection.exec_query(
- "SELECT DISTINCT portable_data_hash FROM collections"
+ "SELECT DISTINCT portable_data_hash FROM collections
where file_count=0
"
).rows.count
# Generator that queries for all the distinct pdhs greater than last_pdh
).rows.count
# Generator that queries for all the distinct pdhs greater than last_pdh