diff options
Diffstat (limited to 'sonar-core/src')
-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"; |