Sub2API v1.0 - AI API 网关(二开初始版本,基于上游 Wei-Shaw/sub2api)
Release / update-version (push) Has been cancelled
Release / build-frontend (push) Has been cancelled
Release / release (push) Has been cancelled
Release / sync-version-file (push) Has been cancelled
CI / shell (push) Canceled after 0s
CI / test (push) Canceled after 0s
CI / frontend (push) Canceled after 0s
CI / golangci-lint (push) Canceled after 0s
Security Scan / backend-security (push) Canceled after 0s
Security Scan / frontend-security (push) Canceled after 0s
Release / update-version (push) Has been cancelled
Release / build-frontend (push) Has been cancelled
Release / release (push) Has been cancelled
Release / sync-version-file (push) Has been cancelled
CI / shell (push) Canceled after 0s
CI / test (push) Canceled after 0s
CI / frontend (push) Canceled after 0s
CI / golangci-lint (push) Canceled after 0s
Security Scan / backend-security (push) Canceled after 0s
Security Scan / frontend-security (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
-- 修复:user_provider_default_grants 表的 provider_type check 约束
|
||||
-- 与 auth_identities / auth_identity_channels / pending_auth_sessions 保持一致,
|
||||
-- 否则启用了 auth_source_default_{github,google,dingtalk}_grant_on_first_bind
|
||||
-- 之后,OAuth 首次绑定流程会因约束违反而失败。
|
||||
-- 参见 migrations 135、136 漏改本表。
|
||||
|
||||
ALTER TABLE user_provider_default_grants
|
||||
DROP CONSTRAINT IF EXISTS user_provider_default_grants_provider_type_check;
|
||||
|
||||
ALTER TABLE user_provider_default_grants
|
||||
ADD CONSTRAINT user_provider_default_grants_provider_type_check
|
||||
CHECK (provider_type IN ('email', 'linuxdo', 'wechat', 'oidc', 'github', 'google', 'dingtalk'));
|
||||
Reference in New Issue
Block a user