diff --git a/pom.xml b/pom.xml index 3900c35..a0b9feb 100644 --- a/pom.xml +++ b/pom.xml @@ -104,12 +104,6 @@ - - org.flywaydb - flyway-maven-plugin - 10.17.0 - - org.springframework.boot spring-boot-maven-plugin diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 23ccdd6..b6e1502 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -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 diff --git a/src/main/resources/db/migration/V0__data_insert.sql b/src/main/resources/db/migration/V0__data_insert.sql new file mode 100644 index 0000000..e89fe38 --- /dev/null +++ b/src/main/resources/db/migration/V0__data_insert.sql @@ -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); \ No newline at end of file