Class JpaUpdate24_0_2_FederatedTermsAndConditionsRequiredAction
java.lang.Object
org.keycloak.connections.jpa.updater.liquibase.custom.CustomKeycloakTask
org.keycloak.connections.jpa.updater.liquibase.custom.JpaUpdate24_0_2_FederatedTermsAndConditionsRequiredAction
- All Implemented Interfaces:
liquibase.change.custom.CustomChange
,liquibase.change.custom.CustomSqlChange
Custom liquibase change to migrate legacy
terms and conditions
required action for federated users (table
FED_USER_REQUIRED_ACTION
, in line with what JpaUpdate21_0_2_TermsAndConditionsRequiredAction
did to migrate the same action for regular users.
The legacy value was in lowercase, and it was changed to upper case to match the other required actions in Keycloak.
This class ensures that the legacy action set for federated users is properly migrated to upper case when upgrading
the server.- Author:
- Stefan Guilhen
-
Field Summary
Fields inherited from class org.keycloak.connections.jpa.updater.liquibase.custom.CustomKeycloakTask
confirmationMessage, connection, database, jdbcConnection, kcSession, statements
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
It's supposed to fill SQL statements to the "statements" variable and fill "confirmationMessage"protected String
Methods inherited from class org.keycloak.connections.jpa.updater.liquibase.custom.CustomKeycloakTask
generateStatements, getConfirmationMessage, getTableName, isApplicable, setFileOpener, setUp, validate
-
Constructor Details
-
JpaUpdate24_0_2_FederatedTermsAndConditionsRequiredAction
public JpaUpdate24_0_2_FederatedTermsAndConditionsRequiredAction()
-
-
Method Details
-
generateStatementsImpl
protected void generateStatementsImpl() throws liquibase.exception.CustomChangeExceptionDescription copied from class:CustomKeycloakTask
It's supposed to fill SQL statements to the "statements" variable and fill "confirmationMessage"- Specified by:
generateStatementsImpl
in classCustomKeycloakTask
- Throws:
liquibase.exception.CustomChangeException
-
getTaskId
- Specified by:
getTaskId
in classCustomKeycloakTask
-