fix: migration 0019 - use CAST(:perms AS jsonb) to avoid SQLAlchemy bind param collision with ::jsonb cast

This commit is contained in:
Agent Zero
2026-07-15 22:10:14 +02:00
parent 7bb0eb1941
commit 23e5cf1e15
+1 -1
View File
@@ -80,7 +80,7 @@ def upgrade() -> None:
gen_random_uuid(), gen_random_uuid(),
t.id, t.id,
:role_name, :role_name,
:perms::jsonb, CAST(:perms AS jsonb),
'[]'::jsonb, '[]'::jsonb,
'{}'::jsonb, '{}'::jsonb,
1, 1,