alembic
alembic copied to clipboard
A database migrations tool for SQLAlchemy.
**Migrated issue, originally created by Josh Kupershmidt ([@schmiddy](https://github.com/schmiddy))** I was a little surprised to see that the `alembic_version` table records only the current `version_num`, without even a timestamp indicating when...
Same as before, but in the non-generated file ### Description Added type Any to **kw function args ### Checklist This pull request is: - [ ] A documentation / typographical...
Simple change to fix (some) type checking with Pyright and friends. Add missing types to **kw ### Description Simple update to types, consistent with other similar instances already in place....
**Migrated issue, originally created by Wichert Akkerman ([@wichert](https://github.com/wichert))** I have a data model which has a simple enum column: ``` size_type = schema.Column( types.Enum('normal', 'plus', name='size_type_type'), nullable=False, default='normal') ``` as...
### Description I added a small docs regarding data migrations, based on #972. ### Checklist This pull request is: - [X] A documentation / typographical error fix - Good to...
**Migrated issue, originally created by Adrian Vogelsgesang ([@vogelsgesang](https://github.com/vogelsgesang))** If the schema contains circular dependencies, the order of the `CREATE TABLE` statements is incorrect. This is because `metadata.sorted_tables` (used [here](https://bitbucket.org/zzzeek/alembic/src/1c67b1ab8c6fe273d4e175a14f0df5d3cbbd0edc/alembic/autogenerate/compare.py?at=master&fileviewer=file-view-default#compare.py-73)) returns...
**Describe the bug** After upgrading from `v1.6.5` to `v1.7.1` `mypy` returns an error on our `env.py` where before it passed with no issue. **Expected behaviour** The breaking change that moves...
**Describe the bug** Typing for custom operation implementation complains when using other operations for the implementation. For example from the cookbook: ```py @Operations.implementation_for(CreateViewOp) def create_view(operations, operation): operations.execute("CREATE VIEW %s AS...
**Describe the bug** mypy doesn't allow Delete() as parameter to op.execute(). **Expected behavior** no mypy error? **To Reproduce** ```py from alembic import op from sqlalchemy import table op.execute(table("test").delete()) ``` **Error**...
Given a model definition with an Enum, the resulting autogenerated migration creates a type in the database (Postgresql). The relative downgrade migration doesn't drop it from the database, making it...