summaryrefslogtreecommitdiffstats
path: root/sonar-core/src
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-01-17 11:37:40 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2014-01-17 11:38:28 +0100
commitd147d88e6cbaec33adc96232d5b5c8906f028160 (patch)
tree562f05df56b98d203bca2e912dfe1675f360cf20 /sonar-core/src
parent5961ed9ceeb8b7c6b54c1c9fd07eb7fbd676a343 (diff)
downloadsonarqube-d147d88e6cbaec33adc96232d5b5c8906f028160.tar.gz
sonarqube-d147d88e6cbaec33adc96232d5b5c8906f028160.zip
SONAR-926 Add a DB migration script for package -> directory
Diffstat (limited to 'sonar-core/src')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java2
-rw-r--r--sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql1
2 files changed, 2 insertions, 1 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java b/sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java
index c6aa0cc296c..3938a78a191 100644
--- a/sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java
+++ b/sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java
@@ -33,7 +33,7 @@ import java.util.List;
*/
public class DatabaseVersion implements BatchComponent, ServerComponent {
- public static final int LAST_VERSION = 489;
+ public static final int LAST_VERSION = 490;
public static enum Status {
UP_TO_DATE, REQUIRES_UPGRADE, REQUIRES_DOWNGRADE, FRESH_INSTALL
diff --git a/sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql b/sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql
index 0cd78edcbcd..152cf2f5f63 100644
--- a/sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql
+++ b/sonar-core/src/main/resources/org/sonar/core/persistence/rows-h2.sql
@@ -200,6 +200,7 @@ INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('485');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('486');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('488');
INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('489');
+INSERT INTO SCHEMA_MIGRATIONS(VERSION) VALUES ('490');
INSERT INTO USERS(ID, LOGIN, NAME, EMAIL, CRYPTED_PASSWORD, SALT, CREATED_AT, UPDATED_AT, REMEMBER_TOKEN, REMEMBER_TOKEN_EXPIRES_AT) VALUES (1, 'admin', 'Administrator', '', 'a373a0e667abb2604c1fd571eb4ad47fe8cc0878', '48bc4b0d93179b5103fd3885ea9119498e9d161b', '2011-09-26 22:27:48.0', '2011-09-26 22:27:48.0', null, null);
ALTER TABLE USERS ALTER COLUMN ID RESTART WITH 2;