alembic breaking changes
Updated December 4, 2026
On this page
Latest version 1.20.1, released October 22, 2026. Source repository
Packages on PyPI run on Python. Python end of life dates.
- From 0.9.0 to 1.20.0: 268 breaking changes in 21 versions.
- From 0.8.0 to 1.20.0: 272 breaking changes in 22 versions.
alembic 1.20.0 breaking changes
- Removed
alembic.autogenerate.compare.util.sqla_compat
alembic.autogenerate.compare.util.sqla_compat was removed in alembic 1.20.0 pypi.org - Removed
alembic.operations.toimpl.sqla_2
alembic.operations.toimpl.sqla_2 was removed in alembic 1.20.0 pypi.org - Removed
alembic.testing.expect_sqlalchemy_deprecated_20
alembic.testing.expect_sqlalchemy_deprecated_20 was removed in alembic 1.20.0 pypi.org - Removed
alembic.testing.fixtures.sqla_2
alembic.testing.fixtures.sqla_2 was removed in alembic 1.20.0 pypi.org - Removed
alembic.testing.requirements.SuiteRequirements.sqlalchemy_1x
SuiteRequirements.sqlalchemy_1x was removed in alembic 1.20.0 pypi.org - Removed
alembic.testing.requirements.SuiteRequirements.sqlalchemy_2
SuiteRequirements.sqlalchemy_2 was removed in alembic 1.20.0 pypi.org - Removed
alembic.testing.suite.is_not_
alembic.testing.suite.is_not_ was removed in alembic 1.20.0 pypi.org - Removed
alembic.testing.suite.test_environment.is_not_
alembic.testing.suite.test_environment.is_not_ was removed in alembic 1.20.0 pypi.org - Removed
alembic.testing.TestBase.is_sqlalchemy_future
TestBase.is_sqlalchemy_future was removed in alembic 1.20.0 pypi.org - Removed
alembic.testing.util.sqla_2
alembic.testing.util.sqla_2 was removed in alembic 1.20.0 pypi.org - Removed
alembic.util.sqla_2
alembic.util.sqla_2 was removed in alembic 1.20.0 pypi.org - Removed
alembic.util.sqla_compat.sqla_14_18
alembic.util.sqla_compat.sqla_14_18 was removed in alembic 1.20.0 pypi.org - Removed
alembic.util.sqla_compat.sqla_14_26
alembic.util.sqla_compat.sqla_14_26 was removed in alembic 1.20.0 pypi.org - Signature changed
alembic.testing.util.testing_engine
Was def testing_engine(url=None, options=None, future=False); now testing_engine. pypi.org
alembic 1.19.2 breaking changes
- Removed
alembic.autogenerate.compare.check_constraints
alembic.autogenerate.compare.check_constraints was removed in alembic 1.19.2 pypi.org - Renamed
alembic.autogenerate.compare.check_constraints.AutogenContext
Use alembic.ext.checkconstraint_byname.AutogenContext instead. pypi.org - Renamed
alembic.autogenerate.compare.check_constraints.DefaultImpl
Use alembic.ext.checkconstraint_byname.DefaultImpl instead. pypi.org - Renamed
alembic.autogenerate.compare.check_constraints.ModifyTableOps
Use alembic.ext.checkconstraint_byname.ModifyTableOps instead. pypi.org - Renamed
alembic.autogenerate.compare.check_constraints.Plugin
Use alembic.ext.checkconstraint_byname.Plugin instead. pypi.org - Renamed
alembic.autogenerate.compare.check_constraints.PriorityDispatchResult
Use alembic.ext.checkconstraint_byname.PriorityDispatchResult instead. pypi.org - Renamed
alembic.autogenerate.compare.check_constraints.setup
Use alembic.ext.checkconstraint_byname.setup instead. pypi.org - Signature changed
alembic.op.BatchOperations.create_index
Was def create_index(self, index_name: str, columns: list[str], **kw: Any) -> None; now def create_index(self, index_name: str, columns: Sequence[str | TextClause | ColumnElement[Any]], **kw: Any) -> None. pypi.org - Signature changed
alembic.op.CreateIndexOp.batch_create_index
Was @classmethod def batch_create_index(cls, operations: BatchOperations, index_name: str, columns: list[str], **kw: Any) -> None; now @classmethod def batch_create_index(cls, operations: BatchOperations, index_name: str, columns... pypi.org
alembic 1.19.0 breaking changes
- Removed
alembic.environment.Dict
alembic.environment.Dict was removed in alembic 1.19.0 pypi.org - Removed
alembic.environment.List
alembic.environment.List was removed in alembic 1.19.0 pypi.org - Removed
alembic.environment.Tuple
alembic.environment.Tuple was removed in alembic 1.19.0 pypi.org - Removed
alembic.migration.Dict
alembic.migration.Dict was removed in alembic 1.19.0 pypi.org - Removed
alembic.migration.List
alembic.migration.List was removed in alembic 1.19.0 pypi.org - Removed
alembic.migration.Set
alembic.migration.Set was removed in alembic 1.19.0 pypi.org - Removed
alembic.migration.Tuple
alembic.migration.Tuple was removed in alembic 1.19.0 pypi.org - Removed
alembic.migration.Union
alembic.migration.Union was removed in alembic 1.19.0 pypi.org - Signature changed
alembic.context.configure
Was def configure(connection: Optional[Connection] = None, url: Union[str, URL, None] = None, dialect_name: Optional[str] = None, dialect_opts: Optional[Dict[str, Any]] = None, transactional_ddl: Optional[bool] = None... pypi.org - Signature changed
alembic.ddl.DefaultImpl.alter_column
Was def alter_column(self, table_name: str, column_name: str, *, nullable: Optional[bool] = None, server_default: Optional[Union[_ServerDefaultType, Literal[False]]] = False, name: Optional[str] = None, type_: Optional[TypeEngine] = None... pypi.org
And 13 more in this version. Sign up to see every change
alembic 1.18.5 breaking changes
- Signature changed
alembic.command.merge
Was def merge(config: Config, revisions: _RevIdType, message: Optional[str] = None, branch_label: Optional[_RevIdType] = None, rev_id: Optional[str] = None) -> Optional[Script]; now def merge(config: Config, revisions: _RevIdType, message... pypi.org - Signature changed
alembic.command.ScriptDirectory.get_heads
Was def get_heads(self) -> List[str]; now def get_heads(self, consider_depends_on: bool = False) -> List[str]. pypi.org - Signature changed
alembic.ddl.mysql.MySQLImpl.compare_type
Was def compare_type(self, inspector_column: Column[Any], metadata_column: Column) -> bool; now def compare_type(self, inspector_column: schema.Column[Any], metadata_column: schema.Column) -> bool. pypi.org
alembic 1.18.4 breaking changes
- Signature changed
alembic.ddl.base.add_column
Was def add_column(compiler: DDLCompiler, column: Column[Any], if_not_exists: Optional[bool] = None, inline_references: Optional[bool] = None, **kw) -> str; now def add_column(compiler: DDLCompiler, column: Column[Any], if_not_exists... pypi.org - Signature changed
alembic.ddl.base.AddColumn.__init__
Was def __init__(self, name: str, column: Column[Any], schema: Optional[Union[quoted_name, str]] = None, if_not_exists: Optional[bool] = None, inline_references: Optional[bool] = None) -> None; now def __init__(self, name: str, column... pypi.org - Signature changed
alembic.ddl.DefaultImpl.add_column
Was def add_column(self, table_name: str, column: Column[Any], *, schema: Optional[Union[str, quoted_name]] = None, if_not_exists: Optional[bool] = None, inline_references: Optional[bool] = None) -> None; now def add_column(self... pypi.org - Signature changed
alembic.environment.Operations.add_column
Was def add_column(self, table_name: str, column: Column[Any], *, schema: Optional[str] = None, if_not_exists: Optional[bool] = None, inline_references: Optional[bool] = None) -> None; now def add_column(self, table_name: str, column... pypi.org - Signature changed
alembic.op.add_column
Was def add_column(table_name: str, column: Column[Any], *, schema: Optional[str] = None, if_not_exists: Optional[bool] = None, inline_references: Optional[bool] = None) -> None; now def add_column(table_name: str, column: Column[Any], *... pypi.org - Signature changed
alembic.op.AddColumnOp.__init__
Was def __init__(self, table_name: str, column: Column[Any], *, schema: Optional[str] = None, if_not_exists: Optional[bool] = None, inline_references: Optional[bool] = None, **kw: Any) -> None; now def __init__(self, table_name: str... pypi.org - Signature changed
alembic.op.AddColumnOp.add_column
Was @classmethod def add_column(cls, operations: Operations, table_name: str, column: Column[Any], *, schema: Optional[str] = None, if_not_exists: Optional[bool] = None, inline_references: Optional[bool] = None) -> None; now @classmethod... pypi.org - Signature changed
alembic.op.AddColumnOp.batch_add_column
Was @classmethod def batch_add_column(cls, operations: BatchOperations, column: Column[Any], *, insert_before: Optional[str] = None, insert_after: Optional[str] = None, if_not_exists: Optional[bool] = None, inline_references... pypi.org - Signature changed
alembic.op.BatchOperations.add_column
Was def add_column(self, column: Column[Any], *, insert_before: Optional[str] = None, insert_after: Optional[str] = None, if_not_exists: Optional[bool] = None, inline_references: Optional[bool] = None) -> None; now def add_column(self... pypi.org
alembic 1.18.2 breaking changes
- Signature changed
alembic.ddl.base.add_column
Was def add_column(compiler: DDLCompiler, column: Column[Any], if_not_exists: Optional[bool] = None, **kw) -> str; now def add_column(compiler: DDLCompiler, column: Column[Any], if_not_exists: Optional[bool] = None, inline_references... pypi.org - Signature changed
alembic.ddl.base.AddColumn.__init__
Was def __init__(self, name: str, column: Column[Any], schema: Optional[Union[quoted_name, str]] = None, if_not_exists: Optional[bool] = None) -> None; now def __init__(self, name: str, column: Column[Any], schema... pypi.org - Signature changed
alembic.ddl.base.AlterColumn.__init__
Was def __init__(self, name: str, column_name: str, schema: Optional[str] = None, existing_type: Optional[TypeEngine] = None, existing_nullable: Optional[bool] = None, existing_server_default: Optional[_ServerDefault] = None... pypi.org - Signature changed
alembic.ddl.base.ColumnDefault.__init__
Was def __init__(self, name: str, column_name: str, default: Optional[_ServerDefault], **kw) -> None; now def __init__(self, name: str, column_name: str, default: Optional[_ServerDefaultType], **kw) -> None. pypi.org - Signature changed
alembic.ddl.base.format_server_default
Was def format_server_default(compiler: DDLCompiler, default: Optional[_ServerDefault]) -> str; now def format_server_default(compiler: DDLCompiler, default: Optional[_ServerDefaultType]) -> str. pypi.org - Signature changed
alembic.ddl.DefaultImpl.add_column
Was def add_column(self, table_name: str, column: Column[Any], *, schema: Optional[Union[str, quoted_name]] = None, if_not_exists: Optional[bool] = None) -> None; now def add_column(self, table_name: str, column: Column[Any], *, schema... pypi.org - Signature changed
alembic.ddl.DefaultImpl.alter_column
Was def alter_column(self, table_name: str, column_name: str, *, nullable: Optional[bool] = None, server_default: Optional[Union[_ServerDefault, Literal[False]]] = False, name: Optional[str] = None, type_: Optional[TypeEngine] = None... pypi.org - Signature changed
alembic.ddl.impl.ApplyBatchImpl.alter_column
Was def alter_column(self, table_name: str, column_name: str, nullable: Optional[bool] = None, server_default: Optional[Union[Function[Any], str, bool]] = False, name: Optional[str] = None, type_: Optional[TypeEngine] = None... pypi.org - Signature changed
alembic.ddl.mssql.format_server_default
Was def format_server_default(compiler: DDLCompiler, default: Optional[_ServerDefault]) -> str; now def format_server_default(compiler: DDLCompiler, default: Optional[_ServerDefaultType]) -> str. pypi.org - Signature changed
alembic.ddl.mssql.MSSQLImpl.alter_column
Was def alter_column(self, table_name: str, column_name: str, *, nullable: Optional[bool] = None, server_default: Optional[Union[_ServerDefault, Literal[False]]] = False, name: Optional[str] = None, type_: Optional[TypeEngine] = None... pypi.org
And 18 more in this version. Sign up to see every change
Older versions
17 older versions, each with its first changes. Sign up to see every change
Show 17 older versions
alembic 1.18.0 breaking changes
- Removed
alembic.autogenerate.compare.AlterColumnOp
alembic.autogenerate.compare.AlterColumnOp was removed in alembic 1.18.0 pypi.org - Removed
alembic.autogenerate.compare.ModifyTableOps
alembic.autogenerate.compare.ModifyTableOps was removed in alembic 1.18.0 pypi.org
And 21 more in this version.
alembic 1.17.2 breaking changes
- Signature changed
alembic.operations.AbstractOperations.implementation_for
Was @classmethod def implementation_for(cls, op_cls: Any) -> Callable[[_C], _C]; now @classmethod def implementation_for(cls, op_cls: Any, replace: bool = False) -> Callable[[_C], _C]. pypi.org - Signature changed
alembic.util.Dispatcher.dispatch_for
Was def dispatch_for(self, target: Any, qualifier: str = 'default') -> Callable[[_C], _C]; now def dispatch_for(self, target: Any, qualifier: str = 'default', replace: bool = False) -> Callable[[_C], _C]. pypi.org
alembic 1.17.1 breaking changes
- Signature changed
alembic.command.current
Was def current(config: Config, verbose: bool = False) -> None; now def current(config: Config, check_heads: bool = False, verbose: bool = False) -> None. pypi.org
alembic 1.17.0 breaking changes
- Removed
alembic.util.compat.py310
alembic.util.compat.py310 was removed in alembic 1.17.0 pypi.org - Removed
alembic.util.compat.py39
alembic.util.compat.py39 was removed in alembic 1.17.0 pypi.org
And 3 more in this version.
alembic 1.16.5 breaking changes
- Signature changed
alembic.command.Config.get_alembic_option
Was def get_alembic_option(self, name: str, default: Optional[str] = None) -> Union[None, str, list[str], dict[str, str], list[dict[str, str]]]; now def get_alembic_option(self, name: str, default: Optional[str] = None) -> Union[None, str... pypi.org - Signature changed
alembic.ddl.mysql.MySQLImpl.render_ddl_sql_expr
Was def render_ddl_sql_expr(self, expr: ClauseElement, is_server_default: bool = False, **kw: Any) -> str; now def render_ddl_sql_expr(self, expr: ClauseElement, is_server_default: bool = False, is_index: bool = False, **kw: Any) -> str. pypi.org
alembic 1.16.2 breaking changes
- Signature changed
alembic.util.template_to_file
Was def template_to_file(template_file: Union[str, os.PathLike[str]], dest: Union[str, os.PathLike[str]], output_encoding: str, *, append: bool = False, **kw: Any) -> None; now def template_to_file(template_file: Union[str... pypi.org
alembic 1.16.0 breaking changes
- Removed
alembic.command.ScriptDirectory.hook_config
ScriptDirectory.hook_config was removed in alembic 1.16.0 pypi.org - Signature changed
alembic.command.Config.__init__
Was def __init__(self, file_: Union[str, os.PathLike[str], None] = None, ini_section: str = 'alembic', output_buffer: Optional[TextIO] = None, stdout: TextIO = sys.stdout, cmd_opts: Optional[Namespace] = None, config_args: Mapping[str... pypi.org
And 39 more in this version.
alembic 1.15.2 breaking changes
- Signature changed
alembic.ddl.DefaultImpl.create_column_comment
Was def create_column_comment(self, column: ColumnElement[Any]) -> None; now def create_column_comment(self, column: Column[Any]) -> None. pypi.org - Signature changed
alembic.environment.Operations.alter_column
Was def alter_column(self, table_name: str, column_name: str, *, nullable: Optional[bool] = None, comment: Union[str, Literal[False], None] = False, server_default: Any = False, new_column_name: Optional[str] = None, type_... pypi.org
And 2 more in this version.
alembic 1.15.1 breaking changes
- Removed
alembic.autogenerate.render.Computed
alembic.autogenerate.render.Computed was removed in alembic 1.15.1 pypi.org - Removed
alembic.autogenerate.render.Identity
alembic.autogenerate.render.Identity was removed in alembic 1.15.1 pypi.org
And 31 more in this version.
alembic 1.14.1 breaking changes
- Signature changed
alembic.context.AutogenContext.__init__
Was def __init__(self, migration_context: MigrationContext, metadata: Optional[MetaData] = None, opts: Optional[Dict[str, Any]] = None, autogenerate: bool = True) -> None; now def __init__(self, migration_context: MigrationContext... pypi.org - Signature changed
alembic.context.AutogenContext.metadata
Was metadata: Optional[MetaData]; now metadata: Union[MetaData, Sequence[MetaData], None]. pypi.org
alembic 1.14.0 breaking changes
- Removed
alembic.migration.MetaData
alembic.migration.MetaData was removed in alembic 1.14.0 pypi.org - Removed
alembic.migration.PrimaryKeyConstraint
alembic.migration.PrimaryKeyConstraint was removed in alembic 1.14.0 pypi.org
And 2 more in this version.
alembic 1.13.3 breaking changes
- Signature changed
alembic.ddl.DefaultImpl.create_table
Was def create_table(self, table: Table) -> None; now def create_table(self, table: Table, **kw: Any) -> None. pypi.org - Signature changed
alembic.ddl.DefaultImpl.drop_table
Was def drop_table(self, table: Table) -> None; now def drop_table(self, table: Table, **kw: Any) -> None. pypi.org
And 9 more in this version.
alembic 1.13.2 breaking changes
- Signature changed
alembic.op.BatchOperations.create_foreign_key
Was def create_foreign_key(self, constraint_name: str, referent_table: str, local_cols: List[str], remote_cols: List[str], *, referent_schema: Optional[str] = None, onupdate: Optional[str] = None, ondelete: Optional[str] = None... pypi.org - Signature changed
alembic.op.BatchOperations.create_primary_key
Was def create_primary_key(self, constraint_name: str, columns: List[str]) -> None; now def create_primary_key(self, constraint_name: Optional[str], columns: List[str]) -> None. pypi.org
And 2 more in this version.
alembic 1.13.1 breaking changes
- Removed
alembic.op.invoke
alembic.op.invoke was removed in alembic 1.13.1 pypi.org - Signature changed
alembic.autogenerate.compare.AlterColumnOp.alter_column
Was @classmethod def alter_column(cls, operations: Operations, table_name: str, column_name: str, *, nullable: Optional[bool] = None, comment: Optional[Union[str, Literal[False]]] = False, server_default: Any = False, new_column_name... pypi.org
And 33 more in this version.
alembic 1.0.0 breaking changes
- Removed
alembic.testing.mock.py33
alembic.testing.mock.py33 was removed in alembic 1.0.0 pypi.org - Removed
alembic.testing.requirements.SuiteRequirements.fail_before_sqla_079
SuiteRequirements.fail_before_sqla_079 was removed in alembic 1.0.0 pypi.org
And 12 more in this version.
alembic 0.9.0 breaking changes
- Removed
alembic.util.compat.sqla_08
alembic.util.compat.sqla_08 was removed in alembic 0.9.0 pypi.org - Removed
alembic.util.compat.sqla_09
alembic.util.compat.sqla_09 was removed in alembic 0.9.0 pypi.org
And 2 more in this version.
alembic 0.8.0 breaking changes
- Removed
alembic.autogenerate.api.log
alembic.autogenerate.api.log was removed in alembic 0.8.0 pypi.org - Removed
alembic.autogenerate.api.StringIO
alembic.autogenerate.api.StringIO was removed in alembic 0.8.0 pypi.org
And 93 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.