GUFDERALD
GUFDERALD
TTwenty
Created by GUFDERALD on 4/19/2025 in #❓︱help
Migration error from v0.43 to v0.44 - onboarded_workspace_requires_default_role
Hi! I am migrating my installation from v0.33 to actual, step-by-step. Everything was going great, but when I tried to migrate from v0.43 to v0.44 - I faced next error:
PENDING_CREATION', 'ONGOING_CREATION') OR "defaultRoleId" IS NOT NULL)
query failed: ALTER TABLE "core"."workspace" ADD CONSTRAINT "onboarded_workspace_requires_default_role" CHECK ("activationStatus" IN ('PENDING_CREATION', 'ONGOING_CREATION') OR "defaultRoleId" IS NOT NULL)
error: error: check constraint "onboarded_workspace_requires_default_role" of relation "workspace" is violated by some row
Migration "AddWorkspaceConstraint1742998832316" failed, error: check constraint "onboarded_workspace_requires_default_role" of relation "workspace" is violated by some row
PENDING_CREATION', 'ONGOING_CREATION') OR "defaultRoleId" IS NOT NULL)
query failed: ALTER TABLE "core"."workspace" ADD CONSTRAINT "onboarded_workspace_requires_default_role" CHECK ("activationStatus" IN ('PENDING_CREATION', 'ONGOING_CREATION') OR "defaultRoleId" IS NOT NULL)
error: error: check constraint "onboarded_workspace_requires_default_role" of relation "workspace" is violated by some row
Migration "AddWorkspaceConstraint1742998832316" failed, error: check constraint "onboarded_workspace_requires_default_role" of relation "workspace" is violated by some row
my workspace's defaultRoleId is empty indeed. What did I miss?
8 replies