From 65f22451674f92e924536ee46eb6abac95deae0e Mon Sep 17 00:00:00 2001 From: gearnode Date: Thu, 6 Mar 2025 10:21:33 +0100 Subject: [PATCH] Fix migration organization ref Signed-off-by: gearnode --- pkg/usrmgr/coredata/migrations/20250225T201106Z.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/usrmgr/coredata/migrations/20250225T201106Z.sql b/pkg/usrmgr/coredata/migrations/20250225T201106Z.sql index 8d86dcc6d..d74449828 100644 --- a/pkg/usrmgr/coredata/migrations/20250225T201106Z.sql +++ b/pkg/usrmgr/coredata/migrations/20250225T201106Z.sql @@ -1,6 +1,6 @@ CREATE TABLE usrmgr_user_organizations ( user_id TEXT REFERENCES usrmgr_users(id) NOT NULL, - organization_id TEXT REFERENCES organizations(id) NOT NULL, + organization_id TEXT NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT NOW(), PRIMARY KEY (user_id, organization_id) );