migration add

This commit is contained in:
2025-05-18 11:14:13 +04:00
parent 01126df85b
commit ff3994544b
8 changed files with 23 additions and 68 deletions

View File

@@ -5,3 +5,10 @@ spring.datasource.username=sa
spring.datasource.password=password
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
spring.h2.console.enabled=true
flyway.user=sa
flyway.password=password
flyway.url=jdbc:h2:mem:testdb
flyway.locations=classpath:db/migration
spring.flyway.enabled=true

View File

@@ -0,0 +1,4 @@
INSERT INTO film(id, title, category, release_year) VALUES(0, 'Блич', 'Фэнтези', 2001);
INSERT INTO seazon(id, number, film_id) VALUES(0, 1, 0);
INSERT INTO series(id, name, number, seazon_id) VALUES(0, 'Начало', 1, 0);
INSERT INTO subscribe(id, name, amount) VALUES(0, 'Базовая', 200);