From 9d682f85df86ea0dc53b077aeb329adc640b0dac Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Wed, 29 Oct 2025 20:13:43 +0100 Subject: [PATCH] Fix missing fk Signed-off-by: Bryan Frimin --- pkg/coredata/migrations/20251018T194142Z.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/coredata/migrations/20251018T194142Z.sql b/pkg/coredata/migrations/20251018T194142Z.sql index 657bdb474..5515065da 100644 --- a/pkg/coredata/migrations/20251018T194142Z.sql +++ b/pkg/coredata/migrations/20251018T194142Z.sql @@ -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