From: Simon Brandhof Date: Wed, 8 Feb 2012 17:51:51 +0000 (+0100) Subject: SONAR-2757 execute purges on all historical data after migration X-Git-Tag: 2.14~128 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fff856ad40b5a27148e6f1f48819797ae2f0c94f;p=sonarqube.git SONAR-2757 execute purges on all historical data after migration --- 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