diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2014-04-15 22:00:18 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2014-04-15 22:00:18 +0200 |
commit | 34b84d060a81b59e11f3f61de2bfbad889eeb3a0 (patch) | |
tree | 89e96674975d6d8335ada9535359edd57f1e20ca | |
parent | c67f2bf2faea3f8c1bbf54b0d2dcbe7dbbfcf0dd (diff) | |
download | sonarqube-34b84d060a81b59e11f3f61de2bfbad889eeb3a0.tar.gz sonarqube-34b84d060a81b59e11f3f61de2bfbad889eeb3a0.zip |
SONAR-5219 Hibernate must not validate db schema
-rw-r--r-- | sonar-core/src/main/java/org/sonar/core/persistence/DefaultDatabase.java | 1 | ||||
-rw-r--r-- | sonar-core/src/test/java/org/sonar/core/persistence/DefaultDatabaseTest.java | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/persistence/DefaultDatabase.java b/sonar-core/src/main/java/org/sonar/core/persistence/DefaultDatabase.java index 98a0613f612..9cadd01fddb 100644 --- a/sonar-core/src/main/java/org/sonar/core/persistence/DefaultDatabase.java +++ b/sonar-core/src/main/java/org/sonar/core/persistence/DefaultDatabase.java @@ -164,7 +164,6 @@ public class DefaultDatabase implements Database { } props.put(Environment.DIALECT, getDialect().getHibernateDialectClass().getName()); props.put("hibernate.generate_statistics", "false"); - props.put("hibernate.hbm2ddl.auto", VALIDATE); props.put(Environment.CONNECTION_PROVIDER, CustomHibernateConnectionProvider.class.getName()); return props; diff --git a/sonar-core/src/test/java/org/sonar/core/persistence/DefaultDatabaseTest.java b/sonar-core/src/test/java/org/sonar/core/persistence/DefaultDatabaseTest.java index a181290ee95..2bf2a1d1e6e 100644 --- a/sonar-core/src/test/java/org/sonar/core/persistence/DefaultDatabaseTest.java +++ b/sonar-core/src/test/java/org/sonar/core/persistence/DefaultDatabaseTest.java @@ -137,6 +137,6 @@ public class DefaultDatabaseTest { Properties hibernateProps = database.getHibernateProperties(); - assertThat(hibernateProps.getProperty("hibernate.hbm2ddl.auto")).isEqualTo("validate"); + assertThat(hibernateProps.getProperty("hibernate.generate_statistics")).isEqualTo("false"); } } |