]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4926 Primary key of the table ISSUES is too short
authorSimon Brandhof <simon.brandhof@gmail.com>
Thu, 28 Nov 2013 22:18:31 +0000 (23:18 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Thu, 28 Nov 2013 22:18:31 +0000 (23:18 +0100)
sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java
sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql
sonar-server/src/main/webapp/WEB-INF/db/migrate/434_move_issues_id_to_bigint.rb [new file with mode: 0644]
sonar-server/src/main/webapp/WEB-INF/db/migrate/463_move_issues_id_to_bigint.rb [deleted file]

index 6ddf2dbc146549e9bbf450d34b62314a9995b9d5..7af4c474942a6a978c0487ee1d6c5586bdb8a121 100644 (file)
@@ -33,7 +33,7 @@ import java.util.List;
  */
 public class DatabaseVersion implements BatchComponent, ServerComponent {
 
-  public static final int LAST_VERSION = 463;
+  public static final int LAST_VERSION = 462;
 
   public static enum Status {
     UP_TO_DATE, REQUIRES_UPGRADE, REQUIRES_DOWNGRADE, FRESH_INSTALL
index b268b1e4bb5fd1d747f3222c27c3828eaff0959f..90092a55eb29d81c9df8ab00f8d5eae92b748100 100644 (file)
@@ -177,6 +177,7 @@ INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('430');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('431');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('432');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('433');
+INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('434');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('440');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('441');
 INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('442');
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/434_move_issues_id_to_bigint.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/434_move_issues_id_to_bigint.rb
new file mode 100644 (file)
index 0000000..3609be3
--- /dev/null
@@ -0,0 +1,33 @@
+#
+# Sonar, entreprise quality control tool.
+# Copyright (C) 2008-2013 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.7.4
+# SONAR-4926
+#
+class MoveIssuesIdToBigint < ActiveRecord::Migration
+
+  def self.up
+    alter_to_big_primary_key('issues')
+    alter_to_big_primary_key('issue_changes')
+  end
+
+end
+
diff --git a/sonar-server/src/main/webapp/WEB-INF/db/migrate/463_move_issues_id_to_bigint.rb b/sonar-server/src/main/webapp/WEB-INF/db/migrate/463_move_issues_id_to_bigint.rb
deleted file mode 100644 (file)
index 0cc92a9..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#
-# Sonar, entreprise quality control tool.
-# Copyright (C) 2008-2013 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 4.1
-# SONAR-4926
-#
-class MoveIssuesIdToBigint < ActiveRecord::Migration
-
-  def self.up
-    alter_to_big_primary_key('issues')
-    alter_to_big_primary_key('issue_changes')
-  end
-
-end
-