Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flyway migration before validation #7

Closed
alphawolf1988 opened this issue Mar 25, 2019 · 1 comment
Closed

Flyway migration before validation #7

alphawolf1988 opened this issue Mar 25, 2019 · 1 comment
Assignees

Comments

@alphawolf1988
Copy link

Currently the Hibernate Schema validation is done before database migration. Is it possible to do the flyway migration at first and then do the schema validation?

@graemerocher graemerocher transferred this issue from micronaut-projects/micronaut-core Mar 25, 2019
@saw303
Copy link

saw303 commented Mar 26, 2019

Just noticed this too. When using Flyway to migrate databases its very handy to use Hibernate schema validator to validate the schema after the migration.

Therefore it would be great if this configuration would work without having Hibernate complaining about schema validation issues.

jpa:
  default:
    packages-to-scan:
      - 'a.b.c'
    properties:
      hibernate:
        hbm2ddl:
          auto: validate
        show_sql: false
flyway:
  datasources:
    default:
      locations: classpath:db/migration/mariadb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants