p2-inc / keycloak-orgs

Single realm, multi-tenancy for SaaS apps
Other
362 stars 65 forks source link

Fix precondition in organization attribute index database migration #160

Closed phamann closed 5 months ago

phamann commented 5 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.