Class FederatedUserAttributeTextColumnMigration
java.lang.Object
org.keycloak.connections.jpa.updater.liquibase.custom.CustomKeycloakTask
org.keycloak.connections.jpa.updater.liquibase.custom.FederatedUserAttributeTextColumnMigration
- All Implemented Interfaces:
liquibase.change.custom.CustomChange
,liquibase.change.custom.CustomSqlChange
The MySQL database is the only database where columns longer than 255 characters are changed to a TEXT column, allowing
for up to 64k characters. See
MySQL8VarcharType
for the implementation.
As the new code expects all information longer than 2024 characters in the new column, this migration copies over the values.- Author:
- Alexander Schwartz
-
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
-
FederatedUserAttributeTextColumnMigration
public FederatedUserAttributeTextColumnMigration()
-
-
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
-