mirror of
https://github.com/rennf93/roboco.git
synced 2026-08-03 07:23:24 +02:00
[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:
@@ -18,6 +18,7 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import sqlalchemy as sa
|
import sqlalchemy as sa
|
||||||
from alembic import op
|
from alembic import op
|
||||||
|
from sqlalchemy.dialects import postgresql
|
||||||
|
|
||||||
revision = "072_project_sandbox_extensions"
|
revision = "072_project_sandbox_extensions"
|
||||||
down_revision = "071_review_findings"
|
down_revision = "071_review_findings"
|
||||||
@@ -28,7 +29,7 @@ depends_on: dict[str, str] | None = None
|
|||||||
def upgrade() -> None:
|
def upgrade() -> None:
|
||||||
op.add_column(
|
op.add_column(
|
||||||
"projects",
|
"projects",
|
||||||
sa.Column("sandbox_extensions", sa.JSONB(), nullable=True),
|
sa.Column("sandbox_extensions", postgresql.JSONB(), nullable=True),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user