error when using batch_op.create_foreign_key() #1383
Answered
by
zzzeek
harishsurf
asked this question in
Usage Questions
-
Hi, I am using with op.batch_alter_table("table1") as batch_op:
batch_op.create_foreign_key(
op.f("fk_table1_col1_table2"),
"table2",
["col1"],
["col2"],
) as mentioned in the docs but I get the following error: |
Beta Was this translation helpful? Give feedback.
Answered by
zzzeek
Jan 4, 2024
Replies: 1 comment 3 replies
-
can you provide a complete stack trace? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you're on an old version of alembic that is not up to date for the version of SQLAlchemy you are running, so I would ensure you are on the latest alembic version that supports the SQLAlchemy version you have in use.