Why is alembic altering columns that remain unchanged? #1023
Unanswered
maham360
asked this question in
Usage Questions
Replies: 1 comment 4 replies
-
those alters are changing the nullability of the columns to NOT NULL. If they are NULL in the database schema, that's why these changes would be produced. note there's no change in column type being proposed (it's setting "existing_type" , which other databases that are not PostgreSQL need to know when altering other aspects of a column). |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this code in my migration file:
And here are those columns in my python model:
The datatype "boolean" is the same in the model and database so I'm not sure why alembic is stating the column is being altered? I'm using Flask-SQLAlchemy
Beta Was this translation helpful? Give feedback.
All reactions