Releases: pallets-eco/flask-alembic
3.1.1
This is the Flask-Alembic 3.1.1 fix release. It fixes bugs but does not otherwise change behavior and should not result in breaking changes.
PyPI: https://pypi.org/project/Flask-Alembic/3.1.1/
Changes: https://flask-alembic.readthedocs.io/page/changes/#version-3-1-1
flask db merge
merges all heads by default and does not require an argument.
3.1.0
This is the Flask-Alembic 3.1.0 feature release, which may include new features, remove previously deprecated code, or add new deprecations.
PyPI: https://pypi.org/project/Flask-Alembic/3.1.0/
Changes: https://flask-alembic.readthedocs.io/page/changes/
- Drop support for Python 3.8.
- Support Flask-SQLAlchemy-Lite and plain SQLAlchemy, in addition to Flask-SQLAlchemy.
- Support multiple databases, and multiple metadata per database.
- The constructor args
run_mkdir
andcommand_name
are keyword only. - Deprecate the
init_app
argsrun_mkdir
andcommand_name
. They can be passed to the constructor instead. - Dict values in the
ALEMBIC
config are treated as Alembic config sections, allowing use of Alembic features likepost_write_hooks
.
3.0.1
This is a fix release for the 3.0.x feature release branch. It fixes bugs but does not otherwise change behavior and should not result in breaking changes.
Changes: https://flask-alembic.readthedocs.io/en/latest/changes/#version-3-0-1
PyPI: https://pypi.org/project/Flask-Alembic/3.0.1/
- Fix handling of relative ids (
-1
,+1
) passed todowngrade
andupgrade
.
3.0.0
This updates compatibility with Flask-SQLAlchemy 3.1, and generally modernizes the project layout, tooling, code, and minimum versions. I've made this a milestone release (3.0) rather than a feature release (2.1) given that the library has gone so long without needing an update.
Changes: https://flask-alembic.readthedocs.io/en/latest/changes/#version-3-0-0
PyPI: https://pypi.org/project/Flask-Alembic/3.0.0/
- Minimum supported version of Python is 3.8. Drop support for Python 2.
- Minimum supported version of Flask is 3.0.
- Minimum supported version of SQLAlchemy is 2.0.
- Minimum supported version of Flask-SQLAlchemy is 3.1.
- Minimum supported version of Alembic is 1.13.
- Drop support for Flask-Script.
- Add type annotations.
- Adding the CLI is skipped if
command_name
is empty rather thanFalse
. - The internal cache only holds a weak reference to the Flask app.
- Various arguments no longer use a default value when passed
None
. compare_server_default
defaults toTrue
. Alembic already defaultscompare_type
toTrue
.rev_id
defaults to the current UTC timestamp instead of a UUID.