13 lines
647 B
SQL
13 lines
647 B
SQL
-- Migration: 000143_users_display_name
|
|
-- users.display_name stores the real name (姓名) of OIDC-provisioned users.
|
|
-- Employee-ID style IdPs (Casdoor) put the employee number in username; the
|
|
-- display name arrives via a configurable claim (default `nickname`) and is
|
|
-- written at provisioning plus refreshed on every OIDC login.
|
|
|
|
DO $$ BEGIN RAISE NOTICE '[Migration 000143] Adding users.display_name column...'; END $$;
|
|
|
|
ALTER TABLE users
|
|
ADD COLUMN IF NOT EXISTS display_name VARCHAR(200) NOT NULL DEFAULT '';
|
|
|
|
COMMENT ON COLUMN users.display_name IS 'Real/display name from the OIDC provider (claim configurable, default nickname)';
|