2022-04-25 14:53:38 +07:00
|
|
|
DELETE FROM oauth2_consent_session WHERE subject IN(SELECT identifier FROM user_opaque_identifier WHERE username = '' AND service IN('openid', 'openid_connect'));
|
|
|
|
DELETE FROM user_opaque_identifier WHERE username = '' AND service IN('openid', 'openid_connect');
|
2022-04-25 18:11:56 +07:00
|
|
|
DELETE FROM user_opaque_identifier WHERE service <> 'openid';
|
2022-04-25 07:31:05 +07:00
|
|
|
ALTER TABLE oauth2_consent_session ALTER COLUMN subject DROP NOT NULL;
|
|
|
|
ALTER TABLE oauth2_consent_session ALTER COLUMN subject SET DEFAULT NULL;
|
|
|
|
ALTER TABLE oauth2_consent_session RENAME CONSTRAINT oauth2_consent_subject_fkey TO oauth2_consent_session_subject_fkey;
|