migration fix

This commit is contained in:
2025-05-18 11:54:29 +04:00
parent a38e126b22
commit 2c99e7c1cd
3 changed files with 4 additions and 11 deletions

View File

@@ -104,12 +104,6 @@
</configuration>
</plugin>
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>10.17.0</version>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>

View File

@@ -6,9 +6,4 @@ 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);