aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-11-17 21:00:41 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-11-17 21:00:41 +0000
commitadac6daa5e71b96a54c1e37df74119bdf9c9cbe9 (patch)
treeb85419b070bfa7be091dd4b8a42b6ec5d978426c /sonar-server
parent5cbc4afd8e54f91d99440a890fac23a073f79de4 (diff)
downloadsonarqube-adac6daa5e71b96a54c1e37df74119bdf9c9cbe9.tar.gz
sonarqube-adac6daa5e71b96a54c1e37df74119bdf9c9cbe9.zip
SONAR-1990 ORA-01795: maximum number of expressions in a list is 1000
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/152_delete_duplicated_lib_snapshots.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/152_delete_duplicated_lib_snapshots.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/152_delete_duplicated_lib_snapshots.rb
index c6c747532cd..d7b317bd3e1 100644
--- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/152_delete_duplicated_lib_snapshots.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/152_delete_duplicated_lib_snapshots.rb
@@ -48,7 +48,7 @@ class DeleteDuplicatedLibSnapshots < ActiveRecord::Migration
if snapshots.size > 0
say_with_time "Deleting #{snapshots.size} orphan snapshots..." do
sids=snapshots.map{|s| s.id}
- page_size=950
+ page_size=100
page_count=(sids.size/page_size)
page_count+=1 if (sids.size % page_size)>0
page_count.times do |page_index|