Moved to flyway for db migration

This commit is contained in:
Rostislav Raykov
2025-03-18 22:13:24 +02:00
parent 7b7f0fcc7a
commit 9073ca54c8
2 changed files with 9 additions and 3 deletions

View File

@@ -103,6 +103,10 @@
spring-boot-starter-logging
</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-core</artifactId>
</dependency>
<dependency>
<groupId>
org.springframework.boot
@@ -226,7 +230,7 @@
<source>21</source>
<target>21</target>
</configuration>
</plugin>
</plugin>
</plugins>
</build>

View File

@@ -4,7 +4,7 @@ spring.datasource.driver-class-name=org.sqlite.JDBC
spring.jpa.database-platform=org.hibernate.community.dialect.SQLiteDialect
spring.datasource.url=jdbc:sqlite:db/quickdrop.db
spring.jpa.show-sql=true
spring.jpa.hibernate.ddl-auto=update
spring.jpa.hibernate.ddl-auto=none
spring.thymeleaf.prefix=classpath:/templates/
spring.thymeleaf.suffix=.html
spring.thymeleaf.cache=false
@@ -13,4 +13,6 @@ logging.file.name=log/quickdrop.log
server.error.path=/error
#logging.level.org.springframework=DEBUG
#logging.level.org.hibernate=DEBUG
#logging.level.org.springframework.security=DEBUG
#logging.level.org.springframework.security=DEBUG
spring.flyway.baseline-on-migrate=true
spring.flyway.baseline-version=1