alembic icon indicating copy to clipboard operation
alembic copied to clipboard

A database migrations tool for SQLAlchemy.

Results 157 alembic issues
Sort by recently updated
recently updated
newest added

**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...

feature
versioning model
Tier 1
motivated volunteers requested

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...

bug
postgresql
data types
autogenerate for enums

### 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...

bug
autogenerate - rendering
Tier 1
recursive FK issue
PRs (with tests!) welcome

**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...

awaiting info
pep 484
expected behavior

**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...

pep 484

**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**...

bug
op directives
pep 484

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...

bug
autogenerate for enums