Skip to content

Releases: pallets-eco/flask-alembic

3.1.1

29 Aug 20:47
3.1.1
1db03b6
Compare
Choose a tag to compare

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

16 Jun 19:01
3.1.0
26dacab
Compare
Choose a tag to compare

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 and command_name are keyword only.
  • Deprecate the init_app args run_mkdir and command_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 like post_write_hooks.

3.0.1

22 Feb 16:11
3.0.1
823432c
Compare
Choose a tag to compare

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 to downgrade and upgrade.

3.0.0

08 Feb 23:17
3.0.0
17e660e
Compare
Choose a tag to compare

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 than False.
  • 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 to True. Alembic already defaults compare_type to True.
  • rev_id defaults to the current UTC timestamp instead of a UUID.