Migrated issue, originally created by dieselmachine ()
I'm generating diffs that are failing to equate these two types (in autogenerate._compare_columns). I understand the two are not strictly equivalent, but I found this note in the sqlalchemy comments (dialects/mysql/base.py):
"Note: following the usual MySQL conventions, TINYINT(1) columns reflected during Table(..., autoload=True) are treated as Boolean columns."
I am not sure whether the issue lies with sqlalchemy or alembic, but I did some grepping through the sqla code attempting to find where the tinyint was being cast to boolean and I was unable to find anything that looked relevant.
I'd like alembic to not detect these as changes during autogenerate, is there something I need to do in order to have this work?
该提问来源于开源项目:sqlalchemy/alembic