aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/db/migrate/581_add_rules_description_format.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/581_add_rules_description_format.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/581_add_rules_description_format.rb
index ea5eec81f89..86279629f82 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/581_add_rules_description_format.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/581_add_rules_description_format.rb
@@ -7,7 +7,8 @@ class AddRulesDescriptionFormat < ActiveRecord::Migration
add_column :rules, :description_format, :string, :null => true, :limit => 20
Rule.reset_column_information
- Rule.update_all({:description_format => 'HTML', :updated_at => Time.now})
+ Rule.update_all({:description_format => 'HTML', :updated_at => Time.now}, "plugin_name != 'manual' AND template_id IS NULL")
+ Rule.update_all({:description_format => 'MARKDOWN', :updated_at => Time.now}, "plugin_name = 'manual' OR template_id IS NOT NULL")
end
end