---
title: "flask-migrate 4.1.0 Breaking Changes on PyPI | Since.dev"
description: "What each flask-migrate release removed, renamed or changed: 13 breaking changes in 6 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/flask-migrate
last_updated: 2026-12-04
---

# flask-migrate breaking changes

flask-migrate 4.1.0 (January 10, 2025) is its newest release with breaking changes. The first: Signature changed flask_migrate.cli.db. Every breaking API change we have recorded in flask-migrate on PyPI: 13 breaking changes in 6 versions. Below, its 6 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.1.0`, released January 10, 2025. [Source repository](https://github.com/miguelgrinberg/flask-migrate)

Its 4.0.5 release drops [Python 3.7](https://since.dev/calendar/python/3.7.md). [Python end of life dates](https://since.dev/calendar/python.md).

- From [3.1.0](#v-3-1-0) to [4.1.0](#v-4-1-0): 8 breaking changes in 4 versions.
- From [3.0.0](#v-3-0-0) to [4.1.0](#v-4-1-0): 10 breaking changes in 5 versions.

## flask-migrate 4.1.0 breaking changes

flask-migrate 4.1.0, released January 10, 2025: 1 breaking change.

- **Signature changed** `flask_migrate.cli.db`  

Was def db(x_arg); now def db(directory, x_arg). [pypi.org](https://pypi.org/project/Flask-Migrate/4.1.0/)

## flask-migrate 4.0.6 breaking changes

flask-migrate 4.0.6, released March 9, 2024: 3 breaking changes.

- **Signature changed** `flask_migrate.cli.db`  

Was def db(); now def db(x_arg). [pypi.org](https://pypi.org/project/Flask-Migrate/4.0.6/)
- **Signature changed** `flask_migrate.cli.stamp`  

Was def stamp(directory, sql, tag, revision); now def stamp(directory, sql, tag, revision, purge). [pypi.org](https://pypi.org/project/Flask-Migrate/4.0.6/)
- **Signature changed** `flask_migrate.stamp`  

Was def stamp(directory=None, revision='head', sql=False, tag=None); now def stamp(directory=None, revision='head', sql=False, tag=None, purge=False). [pypi.org](https://pypi.org/project/Flask-Migrate/4.0.6/)

## flask-migrate 4.0.5 breaking changes

flask-migrate 4.0.5, released September 12, 2023: 1 breaking change.

- **Removed**  

Python 3.7 is no longer tested because Flask-SQLAlchemy 3.1 dropped support for it. Users still on Python 3.7 should upgrade Python. [github.com](https://github.com/miguelgrinberg/flask-migrate/blob/main/CHANGES.md)

## flask-migrate 4.0.0 breaking changes

flask-migrate 4.0.0, released November 13, 2022: 3 breaking changes.

- **Default changed**  

Autogenerate now compares column types and batch mode is on by default. Users who relied on the old defaults should set these options explicitly. [github.com](https://github.com/miguelgrinberg/flask-migrate/blob/main/CHANGES.md)
- **Signature changed** `flask_migrate.Migrate.__init__`  

Was def \_\_init\_\_(self, app=None, db=None, directory='migrations', \*\*kwargs); now def \_\_init\_\_(self, app=None, db=None, directory='migrations', command='db', compare_type=True, render_as_batch=True, \*\*kwargs). [pypi.org](https://pypi.org/project/Flask-Migrate/4.0.0/)
- **Signature changed** `flask_migrate.Migrate.init_app`  

Was def init_app(self, app, db=None, directory=None, \*\*kwargs); now def init_app(self, app, db=None, directory=None, command=None, compare_type=None, render_as_batch=None, \*\*kwargs). [pypi.org](https://pypi.org/project/Flask-Migrate/4.0.0/)

## flask-migrate 3.1.0 breaking changes

flask-migrate 3.1.0, released August 1, 2021: 2 breaking changes.

- **Signature changed** `flask_migrate.cli.init`  

Was def init(directory, multidb); now def init(directory, multidb, template, package). [pypi.org](https://pypi.org/project/Flask-Migrate/3.1.0/)
- **Signature changed** `flask_migrate.init`  

Was def init(directory=None, multidb=False); now def init(directory=None, multidb=False, template=None, package=False). [pypi.org](https://pypi.org/project/Flask-Migrate/3.1.0/)

## flask-migrate 3.0.0 breaking changes

flask-migrate 3.0.0, released May 15, 2021: 3 breaking changes.

- **Removed**  

Flask-Script support was removed in this release, so code that relies on it will no longer work. [github.com](https://github.com/miguelgrinberg/flask-migrate/blob/main/CHANGES.md)
- **Removed** `flask_migrate.FakeCommand`  

flask_migrate.FakeCommand was removed in Flask-Migrate 3.0.0 [pypi.org](https://pypi.org/project/Flask-Migrate/3.0.0/)
- **Removed** `flask_migrate.MigrateCommand`  

flask_migrate.MigrateCommand was removed in Flask-Migrate 3.0.0 [pypi.org](https://pypi.org/project/Flask-Migrate/3.0.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
