diff options
author | Julien HENRY <julien.henry@sonarsource.com> | 2014-05-06 14:35:33 +0200 |
---|---|---|
committer | Julien HENRY <julien.henry@sonarsource.com> | 2014-05-06 14:35:33 +0200 |
commit | 6b097b3fbe1455887febecdb6ad33c7c1a2cb676 (patch) | |
tree | c2f4654ef44068e4cf3c4d9a9b8c0a62850fab2e /sonar-server | |
parent | ce0c6040f3a9336de3fd38ff6764647d96dc9a73 (diff) | |
download | sonarqube-6b097b3fbe1455887febecdb6ad33c7c1a2cb676.tar.gz sonarqube-6b097b3fbe1455887febecdb6ad33c7c1a2cb676.zip |
SONAR-5249 Fix migration on SQL Server
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/db/migrate/530_merge_measure_data_into_project_measures.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/530_merge_measure_data_into_project_measures.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/530_merge_measure_data_into_project_measures.rb index 0500c775f54..73e6bc7cdad 100644 --- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/530_merge_measure_data_into_project_measures.rb +++ b/sonar-server/src/main/webapp/WEB-INF/db/migrate/530_merge_measure_data_into_project_measures.rb @@ -30,6 +30,8 @@ class MergeMeasureDataIntoProjectMeasures < ActiveRecord::Migration def self.up unless ProjectMeasure.column_names.include?('measure_data') add_column :project_measures, 'measure_data', :binary, :null => true + # Required for MSSQL to unlock the table PROJECT_MEASURES + ActiveRecord::Base.connection.commit_db_transaction end ProjectMeasure.reset_column_information Java::OrgSonarServerUi::JRubyFacade.getInstance().databaseMigrator().executeMigration('org.sonar.server.db.migrations.v44.MeasureDataMigration') |