aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-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