title: Flyway schema migration fails with DML and DDL script
body: <p>I am using Spring Boot 1.4.1.RELEASE with Flyway.</p>
  
  <p>Flyway fails to perform the DML script when performing the schema migration.</p>
  
  <p>My resources folder has the following structure for Flyway :</p>
  
  <p><a href="https://i.stack.imgur.com/NKi7X.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NKi7X.jpg" alt="enter image description here"></a></p>
  
  <p>Performing Flyway on an empty database, works fine. It creates the schema and the data for the database.</p>
  
  <p>But once, schema migration ( that is, changes in DML and DDL scripts) should be executed, Flyway shows the following error message :</p>
  
  <pre><code>Caused by: org.flywaydb.core.api.FlywayException: Schema `testDB` contains a failed migration to version 1.02 !
      at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:196) ~[flyway-core-3.2.1.jar:na]
      at org.flywaydb.core.internal.command.DbMigrate$2.doInTransaction(DbMigrate.java:156) ~[flyway-core-3.2.1.jar:na]
      at org.flywaydb.core.internal.util.jdbc.TransactionTemplate.execute(TransactionTemplate.java:72) ~[flyway-core-3.2.1.jar:na]
      at org.flywaydb.core.internal.command.DbMigrate.migrate(DbMigrate.java:156) ~[flyway-core-3.2.1.jar:na]
      at org.flywaydb.core.Flyway$1.execute(Flyway.java:1059) ~[flyway-core-3.2.1.jar:na]
      at org.flywaydb.core.Flyway$1.execute(Flyway.java:1006) ~[flyway-core-3.2.1.jar:na]
      at org.flywaydb.core.Flyway.execute(Flyway.java:1418) ~[flyway-core-3.2.1.jar:na]
      at org.flywaydb.core.Flyway.migrate(Flyway.java:1006) ~[flyway-core-3.2.1.jar:na]
      at org.springframework.boot.autoconfigure.flyway.FlywayMigrationInitializer.afterPropertiesSet(FlywayMigrationInitializer.java:66) ~[spring-boot-autoconfigure-1.4.1.RELEASE.jar:1.4.1.RELEASE]
  </code></pre>
  
  <p>My <strong>application-dev.properties</strong> looks like this: </p>
  
  <pre><code>flyway.enabled=true
  flyway.url: jdbc:mysql://localhost:3306
  flyway.user: usertest
  flyway.password: testtest
  flyway.schemas=testDB
  flyway.baseline-on-migrate=true
  flyway.locations:classpath:/db/migration/dev,/db/data
  
  # Naming strategy
  spring.jpa.hibernate.naming.strategy= org.hibernate.cfg.ImprovedNamingStrategy
  
  spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
  spring.jpa.show-sql = true
  logging.level.org.hibernate.SQL=debug
  spring.jpa.hibernate.format_sql=true
  logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE
  
  spring.jpa.generate-ddl = false
  spring.jpa.hibernate.ddl-auto =none
  </code></pre>