I'm new to Alembic, so my apologies if I'm missing something, but I'm struggling to understand some methodology of my predecessor.
My predecessor (at my company) has a series of revision files inside of the versions/ directory. If a change to the database schema was necessary, he would make changes to the existing revision file and check that in to source control. For example, to resize a column, the existing create_table() function would be altered, from this:
op.create_table(
'mytable',
id(),
sa.Column('name', sa.VARCHAR(50)),
...to this:
op.create_table(
'mytable',
id(),
sa.Column('name', sa.VARCHAR(100)),
Is there any way this could be a useful or beneficial way to use Alembic that I am not aware of because I am new to it? Isn't this defeating the purpose of using Alembic altogether?