Replies: 1 comment
-
/cc @evanchooly |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi people,
I need to change table and column names, so I changed the entities and wrote this startup script.
But I want to exit it if a problem appears.
Sadly the application doesn't exit, instead it still runs.
The bigger problem is, that after stopping the startup script it "updates" the database with the current entity changes.
Or it seems that the application updates the DB before my script runs.
As example I wanted to rename table Apple, to table Banana, but before this step a hibernate exception occurs, it aborts the migration and creates a new empty table called Banana.
So in the end I want to prevent quarkus from entering the lifecyclestep where it tries to update the database with the entity changes itself.
currently I use as a workaround
quarkus.hibernate-orm.database.generation=none
(It should upgrade the production database, so i can't deactivate the quarkus db update setting)
currently I use this:
Beta Was this translation helpful? Give feedback.
All reactions