I would like to change from
description = Column(String(250))
to
description = Column(String)
When I generate migration file using below command, it's getting empty.
alembic revision --autogenerate -m "Changing the column size"
Generated migration file:
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
pass
# ### end Alembic commands
Note:
I alreday have compare_type=True settings in alembic
context.configure(connection=connection, target_metadata=target_metadata, compare_type=True)
It generates migration file with alter function when I change String(250) to String(500) but not for String(250) to String, Seems alembic does not support it!
Any help appreciated.
Thanks in advance!