aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/491_remove_leading_slash_from_resource_keys.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/491_remove_leading_slash_from_resource_keys.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/491_remove_leading_slash_from_resource_keys.rb
index 2ec45971fd3..2084981bfeb 100644
--- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/491_remove_leading_slash_from_resource_keys.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/491_remove_leading_slash_from_resource_keys.rb
@@ -29,7 +29,7 @@ class RemoveLeadingSlashFromResourceKeys < ActiveRecord::Migration
end
def self.up
- resources = Project.find(:all)
+ resources = Project.find(:all, :conditions => ['path is not null'])
resources.each do |resource|
key = resource.kee.split(":").last
prefix = resource.kee.chomp(key)