The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
fix: login_attrs -> jwt_attrs for jwt users (#61940)
Edward Pagetaedb7540450a
diff --git a/resources/migrations/056_update_migrations.yaml b/resources/migrations/056_update_migrations.yamlindex 9ec916a4d53..0bc3f55561d 100644--- a/resources/migrations/056_update_migrations.yaml+++ b/resources/migrations/056_update_migrations.yaml@@ -217,6 +217,24 @@ databaseChangeLog:constraints:nullable: true+ - changeSet:+ id: v56.2025-07-17T20:11:56+ author: edpaget+ comment: |+ Add sync login_attributes with jwt_attributes, we need to replace jwt_attributes+ with login attributes for users with sso_source jwt so that they will get the new+ behavior where login_attributes can override jwt_attributes+ changes:+ - sql: >-+ UPDATE core_user+ SET jwt_attributes = login_attributes, login_attributes = '{}'+ WHERE sso_source = 'jwt';+ rollback:+ - sql: >-+ UPDATE core_user+ SET login_attributes = jwt_attributes+ WHERE sso_source = 'jwt';+# >>>>>>>>>> DO NOT ADD NEW MIGRATIONS BELOW THIS LINE! ADD THEM ABOVE <<<<<<<<<<########################################################################################################################