Suppose I want Spring to
1. Check if required tables exist
2. Add columns, if necessary
3. Add sample rows if tables are empty (do nothing if not)
I read this article (https://www.baeldung.com/spring-boot-data-sql-and-schema-sql). My understanding is that I have to do this to fulfill my objective
1. Set these properties
spring.jpa.hibernate.ddl-auto=update
spring.jpa.defer-datasource-initialization=true
spring.sql.init.mode=always
2. Add a data.sql file that incorporates some in-built conditional logic