diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-04-18 16:56:47 +0200 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-04-18 16:56:47 +0200 |
commit | 91b9063c7b7e13eac1c7d5e11c64cfc9f79c04f7 (patch) | |
tree | cfe16551886ee523f4e6f70008ff4dd29ad3e632 /sonar-core | |
parent | 07983847c9fd81f9f471cf3ad78e5748a43ee031 (diff) | |
download | sonarqube-91b9063c7b7e13eac1c7d5e11c64cfc9f79c04f7.tar.gz sonarqube-91b9063c7b7e13eac1c7d5e11c64cfc9f79c04f7.zip |
SONAR-2366 Upgrade embedded database to Derby 10.7.1.1 + add DatabaseTestCase to sonar-testing-harness
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/jpa/entity/SchemaMigration.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/jpa/entity/SchemaMigration.java b/sonar-core/src/main/java/org/sonar/jpa/entity/SchemaMigration.java index 47b1c4d567d..574765e5114 100644 --- a/sonar-core/src/main/java/org/sonar/jpa/entity/SchemaMigration.java +++ b/sonar-core/src/main/java/org/sonar/jpa/entity/SchemaMigration.java @@ -31,6 +31,15 @@ import javax.persistence.*; public class SchemaMigration { public final static int VERSION_UNKNOWN = -1; + + /* + + IMPORTANT : HOW TO ADD A DATABASE MIGRATION : + - set the following constant LAST_VERSION + - add the activerecord migration script into sonar-server/src/main/webapp/WEB-INF/db/migrate + - complete the Derby DDL file used for unit tests : sonar-testing-harness/src/main/resources/org/sonar/test/persistence/sonar-test.ddl + + */ public static final int LAST_VERSION = 190; public final static String TABLE_NAME = "schema_migrations"; |