feat: DB adjustments + connection profile (#5)
* Use persistent database and add datasource * Change DLL-behaviour for test * Fix linebreak
This commit is contained in:
parent
4d04fc64aa
commit
c3da0eff5c
5 changed files with 30 additions and 10 deletions
2
src/main/resources/application-test.properties
Normal file
2
src/main/resources/application-test.properties
Normal file
|
@ -0,0 +1,2 @@
|
|||
#TODO: Use flyway for db setup
|
||||
hibernate.hbm2ddl.auto=create-drop
|
|
@ -2,12 +2,12 @@
|
|||
spring.application.name=home-cert-assistant
|
||||
# Database
|
||||
driverClassName=org.sqlite.JDBC
|
||||
url=jdbc:sqlite:sqlLiteDb:database?cache=shared
|
||||
url=jdbc:sqlite:sqLiteDb.db
|
||||
username=admin
|
||||
password=admin
|
||||
spring.jpa.database-platform=org.hibernate.community.dialect.SQLiteDialect
|
||||
#TODO: Use flyway for db setup
|
||||
hibernate.hbm2ddl.auto=create-drop
|
||||
hibernate.hbm2ddl.auto=update
|
||||
hibernate.show_sql=true
|
||||
|
||||
# Logging
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue