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

public class FederatedUserAttributeTextColumnMigration extends CustomKeycloakTask
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
  • Constructor Details

    • FederatedUserAttributeTextColumnMigration

      public FederatedUserAttributeTextColumnMigration()
  • Method Details

    • generateStatementsImpl

      protected void generateStatementsImpl() throws liquibase.exception.CustomChangeException
      Description copied from class: CustomKeycloakTask
      It's supposed to fill SQL statements to the "statements" variable and fill "confirmationMessage"
      Specified by:
      generateStatementsImpl in class CustomKeycloakTask
      Throws:
      liquibase.exception.CustomChangeException
    • getTaskId

      protected String getTaskId()
      Specified by:
      getTaskId in class CustomKeycloakTask