I'm starting Application class and have that string in .properties file: spring.jpa.hibernate.ddl-auto=create-drop

These queries brilliant and works fine: drop table if exists costs

But, in the very beginning of log there're these queries: alter table tariffs_options drop foreign key FK

and they of course fails, because db doesn't contain anything (because of strategy create-drop)

How should I fix it?

0 Answers