aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2016-12-12 10:25:58 +0100
committerSimon Brandhof <simon.brandhof@sonarsource.com>2016-12-12 13:05:20 +0100
commit501c4df66369239d7942759c033043ada43fd34c (patch)
treedb47e8e931abf65a30852073a92e8fe0ebd36523 /server/sonar-web/src/main
parent96b2a8e9a6006b3c76716cebe97c339f5ba9b1a4 (diff)
downloadsonarqube-501c4df66369239d7942759c033043ada43fd34c.tar.gz
sonarqube-501c4df66369239d7942759c033043ada43fd34c.zip
SONAR-5471 refactor db migration 1315 in Java
Diffstat (limited to 'server/sonar-web/src/main')
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1315_rename_table_properties2_to_properties.rb14
1 files changed, 1 insertions, 13 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1315_rename_table_properties2_to_properties.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1315_rename_table_properties2_to_properties.rb
index 0241e47f304..e82bc5bc19d 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1315_rename_table_properties2_to_properties.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/1315_rename_table_properties2_to_properties.rb
@@ -24,19 +24,7 @@
class RenameTableProperties2ToProperties < ActiveRecord::Migration
def self.up
- drop_index_quietly :properties2, :properties2_key
- rename_table_quietly :properties2, :properties
- add_varchar_index :properties, :prop_key, :name => 'properties_key'
- end
-
- private
-
- def self.rename_table_quietly(oldName, newName)
- begin
- rename_table oldName, newName
- rescue
- #ignore
- end
+ execute_java_migration('org.sonar.db.version.v61.RenameTableProperties2ToProperties')
end
end