Skip to content
Discussion options

You must be logged in to vote

you can run operations against any engine using the short example that's at https://alembic.sqlalchemy.org/en/latest/ops.html#alembic.operations.Operations

from alembic.migration import MigrationContext
from alembic.operations import Operations

myengine = create_engine(whatever)

conn = myengine.connect()


ctx = MigrationContext.configure(conn)
op = Operations(ctx)

op.alter_column("t", "c", nullable=True)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gordthompson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants