Skip to content

Commit

Permalink
Update Flask-DB and Flask-SQLAlchemy
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjj committed Sep 14, 2023
1 parent 638d936 commit 66adc48
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Changelog](https://keepachangelog.com/en/1.0.0/).

#### Back-end dependencies

- Update `Flask-SQLAlchemy` to `3.0.5`
- Update `Flask-DB` to `0.4.0`
- Update `Flask-SQLAlchemy` to `3.1.1`
- Update `Flask-Static-Digest` to `0.4.0` (now it optionally supports Brotli compression)
- Update `Flask` to `2.3.3`
- Update `SQLAlchemy` to `2.0.20`
Expand Down
2 changes: 1 addition & 1 deletion db/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# There's no access to current_app here so we must create our own app.
app = create_app()
db_uri = app.config["SQLALCHEMY_DATABASE_URI"]
db = app.extensions["sqlalchemy"].db
db = app.extensions["sqlalchemy"]

# Provide access to the values within alembic.ini.
config = context.config
Expand Down
4 changes: 2 additions & 2 deletions requirements-lock.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ click-repl==0.3.0
coverage==7.3.1
flake8==6.1.0
Flask==2.3.3
Flask-DB==0.3.2
Flask-DB==0.4.0
Flask-DebugToolbar==0.13.1
Flask-Secrets==0.1.0
Flask-SQLAlchemy==3.0.5
Flask-SQLAlchemy==3.1.1
Flask-Static-Digest==0.4.0
greenlet==2.0.2
gunicorn==21.2.0
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ gunicorn==21.2.0
psycopg==3.1.10
SQLAlchemy==2.0.20
SQLAlchemy-Utils==0.41.1
Flask-SQLAlchemy==3.0.5
Flask-SQLAlchemy==3.1.1
alembic==1.12.0

redis==5.0.0
Expand All @@ -21,4 +21,4 @@ black==23.9.1
flask-debugtoolbar==0.13.1
Flask-Static-Digest==0.4.0
Flask-Secrets==0.1.0
Flask-DB==0.3.2
Flask-DB==0.4.0

0 comments on commit 66adc48

Please sign in to comment.