summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-02-08 18:51:51 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-02-08 18:52:12 +0100
commitfff856ad40b5a27148e6f1f48819797ae2f0c94f (patch)
tree4cf8386f2090edcb93640783c4b7fa0269d23c1e
parente41624ef15df64ad062f5b035c7ef308c1ff5cdc (diff)
downloadsonarqube-fff856ad40b5a27148e6f1f48819797ae2f0c94f.tar.gz
sonarqube-fff856ad40b5a27148e6f1f48819797ae2f0c94f.zip
SONAR-2757 execute purges on all historical data after migration
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/persistence/rows-derby.sql1
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/db/migrate/253_update_snapshots_purge_status.rb30
2 files changed, 0 insertions, 31 deletions
diff --git a/sonar-core/src/main/resources/org/sonar/core/persistence/rows-derby.sql b/sonar-core/src/main/resources/org/sonar/core/persistence/rows-derby.sql
index 0595de8d11d..5bc729a4199 100644
--- a/sonar-core/src/main/resources/org/sonar/core/persistence/rows-derby.sql
+++ b/sonar-core/src/main/resources/org/sonar/core/persistence/rows-derby.sql
@@ -171,7 +171,6 @@ INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('241');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('250');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('251');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('252');
-INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('253');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('254');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('255');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('256');
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/253_update_snapshots_purge_status.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/253_update_snapshots_purge_status.rb
deleted file mode 100644
index 0138aff4fd7..00000000000
--- a/sonar-server/src/main/webapp/WEB-INF/db/migrate/253_update_snapshots_purge_status.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-#
-# Sonar, entreprise quality control tool.
-# Copyright (C) 2008-2012 SonarSource
-# mailto:contact AT sonarsource DOT com
-#
-# Sonar 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.
-#
-# Sonar 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 Sonar; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
-#
-
-#
-# Sonar 2.14
-#
-class UpdateSnapshotsPurgeStatus < ActiveRecord::Migration
-
- def self.up
- Snapshot.update_all('purge_status=1', ['islast=?', false])
- end
-
-end