Fix missing fk

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-10-29 20:13:43 +01:00
parent 88f3d61982
commit 9d682f85df

View File

@@ -142,7 +142,9 @@ CREATE TABLE auth_saml_relay_states (
CONSTRAINT fk_auth_saml_relay_states_organization FOREIGN KEY (organization_id)
REFERENCES organizations(id) ON DELETE CASCADE,
CONSTRAINT fk_auth_saml_relay_states_saml_config FOREIGN KEY (saml_config_id)
REFERENCES auth_saml_configurations(id) ON DELETE CASCADE
REFERENCES auth_saml_configurations(id) ON DELETE CASCADE,
CONSTRAINT fk_auth_saml_relay_states_request FOREIGN KEY (request_id)
REFERENCES auth_saml_requests(id) ON DELETE CASCADE
);
-- Index for fast token lookup during callback