forked from baron/baron-sso
9 lines
275 B
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';
|