How to set database migration strategy to manual in Keycloak 18

1,144 views
Skip to first unread message

Avishka Perera

unread,
May 25, 2022, 1:46:48 AM5/25/22
to Keycloak Dev

According to the Keycloak Docs - Upgrading section (Upgrading), using --spi-connections-jpa-default-migration-strategy=manual would write all the necessary queries needed for database migration to a SQL file and would exit the server.

I have tried this config as an in-line argument as well as tried adding it in to the keycloak.conf file but still when I start the server it automatically migrates the database and starts up.

Have I missed anything? or is there another way to do this?

Also what's the default location where this SQL file will be available at once it is created?

group account

unread,
May 27, 2022, 7:48:52 AM5/27/22
to Keycloak Dev
For Quarkus based KC it's  --spi-connections-jpa-quarkus-migration-strategy=manual and not with "default".

Avishka Perera

unread,
May 30, 2022, 3:07:20 AM5/30/22
to Keycloak Dev

Thanks! This worked!
Reply all
Reply to author
Forward
0 new messages