From d61d7e12f5ece48c80189890940f3fab1edc852b Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Mon, 9 Mar 2015 16:38:59 +0100 Subject: [PATCH] Db migration: do not test presence of table as it does not work for table "events" on mssql --- .../sonar-web/src/main/webapp/WEB-INF/config/environment.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/server/sonar-web/src/main/webapp/WEB-INF/config/environment.rb b/server/sonar-web/src/main/webapp/WEB-INF/config/environment.rb index 3e0fed42893..20db504e78b 100644 --- a/server/sonar-web/src/main/webapp/WEB-INF/config/environment.rb +++ b/server/sonar-web/src/main/webapp/WEB-INF/config/environment.rb @@ -191,10 +191,8 @@ class ActiveRecord::Migration # Oracle constraint (see names of triggers and indices) raise ArgumentError, "Table name is too long: #{table_name}" if table_name.to_s.length>25 - unless table_exists?(table_name) - super(table_name, options) - create_id_trigger(table_name) if dialect()=='oracle' && options[:id] != false - end + super(table_name, options) + create_id_trigger(table_name) if dialect()=='oracle' && options[:id] != false end def drop_table(table_name, options = {}) -- 2.39.5