From 23e5cf1e151389d73bc9c2e36cb030cd396e6974 Mon Sep 17 00:00:00 2001 From: Agent Zero Date: Wed, 15 Jul 2026 22:10:14 +0200 Subject: [PATCH] fix: migration 0019 - use CAST(:perms AS jsonb) to avoid SQLAlchemy bind param collision with ::jsonb cast --- alembic/versions/0019_rbac_groups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alembic/versions/0019_rbac_groups.py b/alembic/versions/0019_rbac_groups.py index 2136f1f..f67e1c7 100644 --- a/alembic/versions/0019_rbac_groups.py +++ b/alembic/versions/0019_rbac_groups.py @@ -80,7 +80,7 @@ def upgrade() -> None: gen_random_uuid(), t.id, :role_name, - :perms::jsonb, + CAST(:perms AS jsonb), '[]'::jsonb, '{}'::jsonb, 1,