Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update flask_sqlalchemy to 2.5.1 #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pyup-bot
Copy link
Contributor

This PR updates flask_sqlalchemy from 2.2 to 2.5.1.

Changelog

2.5.1

-------------

Released 2021-03-18

-   Fix compatibility with Python 2.7.

2.5.0

-------------

Released 2021-03-18

-   Update to support SQLAlchemy 1.4.
-   SQLAlchemy ``URL`` objects are immutable. Some internal methods have
 changed to return a new URL instead of ``None``. :issue:`885`

2.4.4

-------------

Released 2020-07-14

-   Change base class of meta mixins to ``type``. This fixes an issue
 caused by a regression in CPython 3.8.4. :issue:`852`

2.4.3

-------------

Released 2020-05-26

-   Deprecate ``SQLALCHEMY_COMMIT_ON_TEARDOWN`` as it can cause various
 design issues that are difficult to debug. Call
 ``db.session.commit()`` directly instead. :issue:`216`

2.4.2

-------------

Released 2020-05-25

-   Fix bad pagination when records are de-duped. :pr:`812`

2.4.1

-------------

Released 2019-09-24

-   Fix ``AttributeError`` when using multiple binds with polymorphic
 models. :pr:`651`

2.4.0

-------------

Released 2019-04-24

-   Make engine configuration more flexible. (:pr:`684`)
-   Address SQLAlchemy 1.3 deprecations. (:pr:`684`)
-   ``get_or_404()`` and ``first_or_404()`` now accept a ``description``
 parameter to control the 404 message. (:issue:`636`)
-   Use ``time.perf_counter`` for Python 3 on Windows. (:issue:`638`)
-   Drop support for Python 2.6 and 3.3. (:pr:`687`)
-   Add an example of Flask's tutorial project, Flaskr, adapted for
 Flask-SQLAlchemy. (:pr:`720`)

2.3.2

-------------

Released 2017-10-11

-   Don't mask the parent table for single-table inheritance models.
 (:pr:`561`)

2.3.1

-------------

Released 2017-10-05

-   If a model has a table name that matches an existing table in the
 metadata, use that table. Fixes a regression where reflected tables
 were not picked up by models. (:issue:`551`)
-   Raise the correct error when a model has a table name but no primary
 key. (:pr:`556`)
-   Fix ``repr`` on models that don't have an identity because they have
 not been flushed yet. (:issue:`555`)
-   Allow specifying a ``max_per_page`` limit for pagination, to avoid
 users specifying high values in the request args. (:pr:`542`)
-   For ``paginate`` with ``error_out=False``, the minimum value for
 ``page`` is 1 and ``per_page`` is 0. (:issue:`558`)

2.3.0

-------------

Released 2017-09-28

-   Multiple bugs with ``__tablename__`` generation are fixed. Names
 will be generated for models that define a primary key, but not for
 single-table inheritance subclasses. Names will not override a
 ``declared_attr``. ``PrimaryKeyConstraint`` is detected.
 (:pr:`541`)
-   Passing an existing ``declarative_base()`` as ``model_class`` to
 ``SQLAlchemy.__init__`` will use this as the base class instead of
 creating one. This allows customizing the metaclass used to
 construct the base. (:issue:`546`)
-   The undocumented ``DeclarativeMeta`` internals that the extension
 uses for binds and table name generation have been refactored to
 work as mixins. Documentation is added about how to create a custom
 metaclass that does not do table name generation. (:issue:`546`)
-   Model and metaclass code has been moved to a new ``models`` module.
 ``_BoundDeclarativeMeta`` is renamed to ``DefaultMeta``; the old
 name will be removed in 3.0. (:issue:`546`)
-   Models have a default ``repr`` that shows the model name and primary
 key. (:pr:`530`)
-   Fixed a bug where using ``init_app`` would cause connectors to
 always use the ``current_app`` rather than the app they were created
 for. This caused issues when multiple apps were registered with the
 extension. (:pr:`547`)
Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant