diff --git a/build.gradle b/build.gradle index c396c77..13e3454 100644 --- a/build.gradle +++ b/build.gradle @@ -104,6 +104,9 @@ dependencies { compile group: 'postgresql', name: 'postgresql', version: '9.1-901.jdbc4' + compile group: 'org.liquibase', name: 'liquibase-core', version: '3.5.3' + compile group: 'com.mattbertolini', name: 'liquibase-slf4j', version: '2.0.0' + compile group: 'org.apache.poi', name: 'poi', version: '3.9' compile group: 'org.apache.poi', name: 'poi-ooxml', version: '3.9' diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index a2821bd..e5b11f2 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -26,7 +26,11 @@ spring.datasource.url=jdbc:postgresql://localhost:5432/ng-tracker spring.datasource.username=postgres spring.datasource.password=postgres spring.datasource.driverclassName=org.postgresql.Driver -spring.jpa.hibernate.ddl-auto=update +spring.jpa.hibernate.ddl-auto=validate +# Liquibase Settings +liquibase.drop-first=false +liquibase.enabled=true +liquibase.change-log=classpath:db/changelog-master.xml # Application Settings ng-tracker.base-url=https://127.0.0.1:8443 ng-tracker.undead-user-login=admin