2022-04-25 07:53:38 +00: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 11:11:56 +00:00
|
|
|
DELETE FROM user_opaque_identifier WHERE service <> 'openid';
|
2022-04-25 00:31:05 +00:00
|
|
|
ALTER TABLE oauth2_consent_session MODIFY subject CHAR(36) NULL DEFAULT NULL;
|
|
|
|
ALTER TABLE oauth2_consent_session
|
|
|
|
DROP FOREIGN KEY oauth2_consent_subject_fkey,
|
|
|
|
ADD CONSTRAINT oauth2_consent_session_subject_fkey FOREIGN KEY (subject) REFERENCES user_opaque_identifier(identifier) ON UPDATE RESTRICT ON DELETE RESTRICT;
|