forked from baron/baron-sso
테넌트 목록 조회 cursor기반으로 재구성. 사용자 metadata 미사용 필드 제거
This commit is contained in:
8
scripts/sanitize_baron_user_metadata.sql
Normal file
8
scripts/sanitize_baron_user_metadata.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
-- 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';
|
||||
Reference in New Issue
Block a user