migration add
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
4
src/main/resources/db/migration/V0__data_insert.sql
Normal file
4
src/main/resources/db/migration/V0__data_insert.sql
Normal 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);
|
||||
Reference in New Issue
Block a user