]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4464 Exclude obsolete subviews-based permissions from migration
authorJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Wed, 10 Jul 2013 10:21:15 +0000 (12:21 +0200)
committerJean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com>
Wed, 10 Jul 2013 10:21:15 +0000 (12:21 +0200)
sonar-server/src/main/webapp/WEB-INF/db/migrate/418_migrate_default_permissions.rb

index 8ed3e31d3811eb5e073a61bd04e30e4c32b8cd29..6b6d6914e1465146b5504484ee8f7758bde65a51 100644 (file)
@@ -117,7 +117,8 @@ class MigrateDefaultPermissions < ActiveRecord::Migration
 
       existing_properties.reject! {|prop| prop.nil?}
 
-      if existing_properties.length > 0
+      # Subviews permissions are not migrated since they are not used
+      if existing_properties.length > 0 && qualifier != :SVW
         migrate_existing_permissions(qualifier, existing_properties)
       end