Skip to content

auto generate not working for postgres JSONB #411

@sqlalchemy-bot

Description

@sqlalchemy-bot

Migrated issue, originally created by Paul van der Linden

When I auto generate a migration for a model with a jsonb field i get the following error:

    sa.Column('data', postgresql.JSONB(astext_type=Text()), nullable=True),
NameError: name 'Text' is not defined

This is with version alembic 0.8.10 and sqlalchemy 1.1.5, it used to work, and would not add the astext_type=Text() (in version alembic 0.8.9 and sqlalchmey 1.0.15).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions