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

Quarkus 1.5.0 Flyway not running Java Migrations #9819

Closed
brentcrammond opened this issue Jun 5, 2020 · 2 comments · Fixed by #9824
Closed

Quarkus 1.5.0 Flyway not running Java Migrations #9819

brentcrammond opened this issue Jun 5, 2020 · 2 comments · Fixed by #9824
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@brentcrammond
Copy link

Describe the bug
Quarkus 1.5.0 Flyway not running Java Migrations

Expected behavior
All migrations (sql and Java) are run.

Actual behavior
Only the sql migrations are running.

To Reproduce
Steps to reproduce the behavior:

  1. Create MySQL8 database with schema testflyway
  2. Update database config in application.properties
  3. Run using maven compile quarkus:dev

Configuration

# Add your application.properties here, if applicable.
quarkus.flyway.migrate-at-start = true
quarkus.flyway.baseline-on-migrate = true

quarkus.log.console.enable = true
%dev.quarkus.log.console.enable = true
quarkus.log.console.format = %d{yyyy-MM-dd HH\:mm\:ss,SSS} %-5p [%c{3.}] (%t) %s%e%n
quarkus.log.console.color = true
quarkus.log.console.level = DEBUG

quarkus.log.file.enable = true
quarkus.log.file.format = %d{yyyy-MM-dd HH\:mm\:ss,SSS} %-5p [%c{3.}] (%t) %s%e%n
quarkus.log.file.path = logs/app.log
quarkus.log.file.rotation.max-file-size = 10M
quarkus.log.file.rotation.max-backup-index = 5
quarkus.log.file.rotation.rotate-on-boot = true

quarkus.datasource.db-kind = mysql
quarkus.datasource.username = root
quarkus.datasource.password = xxxxx
quarkus.datasource.jdbc.url = jdbc:mysql://127.0.0.1:3306/testflyway

Screenshots
(If applicable, add screenshots to help explain your problem.)

Screen Shot 2020-06-05 at 10 59 45 PM

Screen Shot 2020-06-05 at 10 59 56 PM

Screen Shot 2020-06-05 at 11 01 22 PM

Environment (please complete the following information):

  • Output of uname -a or ver: Darwin Brents-MBP 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64
  • Output of java -version: OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.7+10)
  • GraalVM version (if different from Java):
  • Quarkus version or git rev: 1.5.0
  • Build tool (ie. output of mvnw --version or gradlew --version): Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)

Additional context
(Add any other context about the problem here.)

  • It works in Quarkus 1.4.2
  • The sql and classes are in the target directory
  • The example runs first two SQL migrations but not the Java one that should follow.

** Simple Test Project **
testflyway.zip

@brentcrammond brentcrammond added the kind/bug Something isn't working label Jun 5, 2020
@geoand
Copy link
Contributor

geoand commented Jun 5, 2020

Hi,

Thanks for reporting!

Question: What exactly are Java migrations? Implementations of BaseJavaMigration?

@geoand
Copy link
Contributor

geoand commented Jun 5, 2020

#9824 fixes the issue

geoand added a commit that referenced this issue Jun 5, 2020
Take Java migration classes into account in Flyway extension
@gsmet gsmet added this to the 1.6.0 - master milestone Jun 10, 2020
@gsmet gsmet modified the milestones: 1.6.0 - master, 1.5.1.Final Jun 10, 2020
gsmet pushed a commit to gsmet/quarkus that referenced this issue Jun 10, 2020
johnaohara pushed a commit to johnaohara/quarkus that referenced this issue Jun 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants