Skip to content

Commit

Permalink
feat: add database auto creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Snootic committed May 8, 2024
1 parent b3c7e4a commit 2ba98ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/resources/application.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
spring.datasource.url=jdbc:${DATABASE:mysql}://${DATABASE_URL:localhost:3306}/sphynx_api
spring.datasource.url=jdbc:${DATABASE:mysql}://${DATABASE_URL:localhost:3306}/sphynx_api?createDatabaseIfNotExist=true
spring.datasource.username=${DATABASE_USERNAME:root}
spring.datasource.password=${DATABASE_PASSWORD:root}
spring.jpa.hibernate.ddl-auto=update
spring.flyway.enabled=true
spring.flyway.locations=classpath:db/migration
spring.flyway.baseline-on-migrate=true
Expand Down

0 comments on commit 2ba98ca

Please sign in to comment.