- Added Flyway sql scripts

- Added SQL constraints added to respective tables see list below:
-- video_playlist: video_id playlist_id
-- Foreign keys reference originals, on delete cascade on both
- Added Java JPA Entity column name mapping to snake_case instead of using base Java camelCase
This commit is contained in:
Reeverflow
2026-03-08 18:17:17 +01:00
parent 4b70387ed5
commit 3a97f29170
12 changed files with 66 additions and 9 deletions

View File

@@ -2,4 +2,8 @@ spring.application.name=video_downloader
spring.datasource.url = jdbc:postgresql://127.0.0.1:5432/videos
spring.datasource.username = postgres
spring.datasource.password = 5995
spring.jpa.hibernate.ddl-auto = create-drop
spring.jpa.hibernate.ddl-auto = none
logging.level.org.flywaydb=DEBUG
logging.level.org.springframework.boot.autoconfigure.flyway=DEBUG
spring.flyway.enabled=true
spring.flyway.baseline-on-migrate=true