1
0
forked from baron/baron-sso
Files
baron-sso/scripts/sanitize_baron_user_metadata.sql

9 lines
275 B
SQL

-- Baron user metadata staging normalization.
-- Idempotently removes legacy classification flags that are no longer SoT.
update users
set metadata = metadata - 'hanmacFamily' - 'userType',
updated_at = now()
where metadata ? 'hanmacFamily'
or metadata ? 'userType';