[sandbox-ext] fix: use postgresql.JSONB in migration 072 (sa.JSONB does not exist)

CI caught: AttributeError: module 'sqlalchemy' has no attribute 'JSONB'.
Repo convention (mig 043/010): from sqlalchemy.dialects import postgresql;
postgresql.JSONB(). Integration test now applies cleanly.
This commit is contained in:
Renn F
2026-07-13 20:05:45 +02:00
committed by Renzo F
parent 6336e82082
commit 674125cf1e
@@ -18,6 +18,7 @@ from __future__ import annotations
import sqlalchemy as sa
from alembic import op
from sqlalchemy.dialects import postgresql
revision = "072_project_sandbox_extensions"
down_revision = "071_review_findings"
@@ -28,7 +29,7 @@ depends_on: dict[str, str] | None = None
def upgrade() -> None:
op.add_column(
"projects",
sa.Column("sandbox_extensions", sa.JSONB(), nullable=True),
sa.Column("sandbox_extensions", postgresql.JSONB(), nullable=True),
)