Flyway migration #30830
Unanswered
sroudebush-rr
asked this question in
Q&A
Flyway migration
#30830
Replies: 2 comments 12 replies
-
/cc @cristhiank (flyway), @gastaldi (flyway), @geoand (flyway), @gsmet (flyway) |
Beta Was this translation helpful? Give feedback.
0 replies
-
How about creating a Quarkus app having only the main class and the flyway extension? |
Beta Was this translation helpful? Give feedback.
12 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've got an app that builds an uber-jar and uses the generated main. This app has lots of rest endpoints, uses quartz for scheduled tasks, and runs flyway migrations on start. My problem is that I'd like to run the app in a mode such that it only runs the flyway migrations then immediately exits the app on success or failure of the migration. I'm wondering what the best approach would be to create such a mode like this for my app.
I've tried adding a custom
@QuarkusMain
class, that works but it seems difficult to disable other aspects of the app with this method.I've also tried using the Flyway plugin but that requires it be bundled with my app to run.
Beta Was this translation helpful? Give feedback.
All reactions