RudolfCardinal / pythonlib

Miscellaneous Python support functions
Apache License 2.0
11 stars 5 forks source link

create_database_migration_numbered_style should only consider .py files #1

Closed martinburchell closed 4 years ago

martinburchell commented 5 years ago

Backup files such as 0030_foo.py~ are not ignored when calculating the next alembic version

https://github.com/RudolfCardinal/pythonlib/blob/master/cardinal_pythonlib/sqlalchemy/alembic_func.py#L329