p2-inc / keycloak-orgs

Single realm, multi-tenancy for SaaS apps
https://phasetwo.io
Other
418 stars 72 forks source link

Fix precondition in organization attribute index database migration #160

Closed phamann closed 10 months ago

phamann commented 10 months ago

TL;DR

Fixes a database migration preCondition that was introduced in https://github.com/p2-inc/keycloak-orgs/pull/145 - as the logic needs to be inverted. I.e. the pre condition needs to fail, not succeed.

We've only finally got around to running the version of keycloak-orgs which introduced this change in our enviroments and this was causing a crashloop failure when deployed as we already had the index applied.