aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@sonarsource.com>2015-06-10 23:10:25 +0200
committerSimon Brandhof <simon.brandhof@sonarsource.com>2015-07-16 22:23:18 +0200
commita12a757173fc977a618f879869135e24f4b5a167 (patch)
tree1cf4645a950acfc9309c0adbd673ffeb4e52dba1
parent0dc397478c2c526b0320f8d0d4e5f1ba54d4fcc7 (diff)
downloadsonarqube-a12a757173fc977a618f879869135e24f4b5a167.tar.gz
sonarqube-a12a757173fc977a618f879869135e24f4b5a167.zip
SONAR-6716 Compress migrations of table alerts
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/db/migrate/054_create_alerts_table.rb1
-rw-r--r--server/sonar-web/src/main/webapp/WEB-INF/db/migrate/359_add_period_to_alerts.rb31
2 files changed, 1 insertions, 31 deletions
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/054_create_alerts_table.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/054_create_alerts_table.rb
index 03611e8b717..ca457552193 100644
--- a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/054_create_alerts_table.rb
+++ b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/054_create_alerts_table.rb
@@ -26,6 +26,7 @@ class CreateAlertsTable < ActiveRecord::Migration
t.column :operator, :string, :limit => 3, :null => true
t.column :value_error, :string, :limit => 64, :null => true
t.column :value_warning, :string, :limit => 64, :null => true
+ t.column 'period', :integer, :null => true
end
end
diff --git a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/359_add_period_to_alerts.rb b/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/359_add_period_to_alerts.rb
deleted file mode 100644
index 5cd988c0c79..00000000000
--- a/server/sonar-web/src/main/webapp/WEB-INF/db/migrate/359_add_period_to_alerts.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# SonarQube, open source software quality management tool.
-# Copyright (C) 2008-2014 SonarSource
-# mailto:contact AT sonarsource DOT com
-#
-# SonarQube is free software; you can redistribute it and/or
-# modify it under the terms of the GNU Lesser General Public
-# License as published by the Free Software Foundation; either
-# version 3 of the License, or (at your option) any later version.
-#
-# SonarQube is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-# Lesser General Public License for more details.
-#
-# You should have received a copy of the GNU Lesser General Public License
-# along with this program; if not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-
-#
-# Sonar 3.4
-#
-class AddPeriodToAlerts < ActiveRecord::Migration
-
- def self.up
- add_column 'alerts', 'period', :integer, :null => true
- end
-
-end
-