From 49eba79f56751dbe8ad7d1914e9cd40d8945d159 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 27 Sep 2013 11:58:39 +0200 Subject: [PATCH] SONAR-4730 Db upgrade 418 fails on Oracle --- .../WEB-INF/db/migrate/418_migrate_default_permissions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/418_migrate_default_permissions.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/418_migrate_default_permissions.rb index c337013e57e..beb2df33277 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/418_migrate_default_permissions.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/418_migrate_default_permissions.rb @@ -85,7 +85,7 @@ class MigrateDefaultPermissions < ActiveRecord::Migration existing_properties["sonar.role.user.#{qualifier}.defaultUsers"] = Property.find_by_prop_key("sonar.role.user.#{qualifier}.defaultUsers") existing_properties["sonar.role.codeviewer.#{qualifier}.defaultUsers"] = Property.find_by_prop_key("sonar.role.codeviewer.#{qualifier}.defaultUsers") - configured_values = existing_properties.values.reject {|prop| prop.nil?} + configured_values = existing_properties.values.reject {|prop| prop.nil? || prop.text_value.nil?} # Existing properties are migrated only when upgrading an existing SonarQube instance # Subviews permissions are not migrated since they are not used -- 2.39.5