title: `hibernate.hbm2ddl.import_files` property stops working if I switch the datasource from `H2` to `postgresql`
body: <p>This is the config of my spring boot app:</p>
  <pre><code>@Configuration
  @EnableJpaAuditing
  public class Cfg {
  
      @Bean(destroyMethod = &quot;close&quot;)
      public DataSource myDataSource() {
          org.apache.tomcat.jdbc.pool.DataSource o = new org.apache.tomcat.jdbc.pool.DataSource();
          o.setDriverClassName(&quot;org.h2.Driver&quot;);
          o.setUrl(&quot;jdbc:h2:mem:test&quot;);
          return o;
      }
  
      @Bean(&quot;entityManagerFactory&quot;)
      public LocalSessionFactoryBean sessionFactory(DataSource myDataSource) {
          LocalSessionFactoryBean o = new LocalSessionFactoryBean();
          o.setDataSource(myDataSource);
          o.setPackagesToScan(&quot;fctorial.crossover.entities&quot;);
          Properties props = new Properties();
          props.setProperty(&quot;hibernate.dialect&quot;, &quot;org.hibernate.dialect.H2Dialect&quot;);
          props.setProperty(&quot;hibernate.show_sql&quot;, &quot;true&quot;);
          props.setProperty(&quot;hibernate.format_sql&quot;, &quot;true&quot;);
          props.setProperty(&quot;hibernate.hbm2ddl.auto&quot;, &quot;none&quot;);
          props.setProperty(&quot;hibernate.hbm2ddl.import_files&quot;, &quot;classpath:/schema.sql,classpath:/data.sql&quot;);
          o.setHibernateProperties(props);
          return o;
      }
  }
  </code></pre>
  <p>And it works as expected, but for some reason, if I change the database to postgresql (via the following patch), the <code>import_files</code> aren't executed anymore.</p>
  <pre><code>@@ -17,8 +17,10 @@
       @Bean(destroyMethod = &quot;close&quot;)
       public DataSource myDataSource() {
           org.apache.tomcat.jdbc.pool.DataSource o = new org.apache.tomcat.jdbc.pool.DataSource();
  -        o.setDriverClassName(&quot;org.h2.Driver&quot;);
  -        o.setUrl(&quot;jdbc:h2:mem:test&quot;);
  +        o.setDriverClassName(&quot;org.postgresql.Driver&quot;);
  +        o.setUsername(&quot;saga&quot;);
  +        o.setPassword(&quot;&quot;);
  +        o.setUrl(&quot;jdbc:postgresql://localhost:5432/postgres&quot;);
           return o;
       }
   
  @@ -28,7 +30,7 @@
           o.setDataSource(myDataSource);
           o.setPackagesToScan(&quot;fctorial.crossover.entities&quot;);
           Properties props = new Properties();
  -        props.setProperty(&quot;hibernate.dialect&quot;, &quot;org.hibernate.dialect.H2Dialect&quot;);
  +        props.setProperty(&quot;hibernate.dialect&quot;, &quot;org.hibernate.dialect.PostgreSQLDialect&quot;);
           props.setProperty(&quot;hibernate.show_sql&quot;, &quot;true&quot;);
           props.setProperty(&quot;hibernate.format_sql&quot;, &quot;true&quot;);
           props.setProperty(&quot;hibernate.hbm2ddl.auto&quot;, &quot;none&quot;);
  </code></pre>
  <p>I have this at the top of <code>schema.sql</code>:</p>
  <pre><code>NOT A VALID SQL STATEMENT;
  </code></pre>
  <p>The <code>h2</code> version of app throws an error at startup but the <code>postgresql</code> version starts without an error and malfunctions at runtime because the database isn't initialized correctly.</p>
  <p>Note: This codebase is a a full example demonstrating this issue: <a href="https://github.com/fctorial/crud" rel="nofollow noreferrer">https://github.com/fctorial/crud</a></p>