made incomplete misc changes

This commit is contained in:
Zhongheng Liu 2024-01-14 14:52:32 +02:00
commit 8259f6cc49
No known key found for this signature in database
4 changed files with 51 additions and 6 deletions

View file

@ -1,6 +1,15 @@
spring.datasource.url=jdbc:mariadb://127.0.0.1:3306/test?useUnicode=true&characterEncoding=UTF-8
spring.datasource.username=dbuser
spring.datasource.password=dbpasswd
spring.datasource.url=jdbc:mariadb://127.0.0.1:3306/epqchat
spring.datasource.username=epqchatuser
spring.datasource.password=epqlevel3artifact
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
# Use custom database handler to ensure that the API and database table collations
# run in UTF-8-MB4 mode. This should get rid of all the encoding issues previously present.
spring.jpa.properties.hibernate.dialect=me.imsonmia.epqapi.config.MySQLCustomDialect
spring.jpa.show-sql: true
spring.jpa.hibernate.ddl-auto=create-drop
# https://stackoverflow.com/questions/42135114/how-does-spring-jpa-hibernate-ddl-auto-property-exactly-work-in-spring
# Summarisation
# create-drop for testing
# validate for semi-production
# none for serious prod scenarios
spring.jpa.hibernate.ddl-auto=update