drop_column provided by alembic does not works... #1263
Unanswered
charlesw1234
asked this question in
Usage Questions
Replies: 3 comments
-
alembic drop_column, like all the column level mods, takes column names, not objects. alembic ops don't require existing metadata oper.drop_column(Building.__table__.name, "myname") |
Beta Was this translation helpful? Give feedback.
0 replies
-
moved to alembic discussions |
Beta Was this translation helpful? Give feedback.
0 replies
-
works for me now, thanks very much. by the way, ALTER TABLE draft_building DROP COLUMN name; does not work in SQLite3.31.1 which is the default version of ubuntu20.04, but works find for 3.37.2 which is the default version of ubuntu22.04. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
To drop a column:
The following error encountered:
And this code is work with SQLAlchemy1.4 & Alembic, how can I fix it? thanks greatly.
Beta Was this translation helpful? Give feedback.
All reactions