-
Notifications
You must be signed in to change notification settings - Fork 8.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
flask upgrade-db
command for running db upgrade with redi…
…s lock (#5333)
- Loading branch information
1 parent
9b7fdad
commit 5f0ce58
Showing
4 changed files
with
29 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,13 +38,14 @@ jobs: | |
- name: Install dependencies | ||
run: poetry install -C api | ||
|
||
- name: Set up Middleware | ||
- name: Set up Middlewares | ||
uses: hoverkraft-tech/[email protected] | ||
with: | ||
compose-file: | | ||
docker/docker-compose.middleware.yaml | ||
services: | | ||
db | ||
redis | ||
- name: Prepare configs | ||
run: | | ||
|
@@ -54,4 +55,4 @@ jobs: | |
- name: Run DB Migration | ||
run: | | ||
cd api | ||
poetry run python -m flask db upgrade | ||
poetry run python -m flask upgrade-db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
Single-database configuration for Flask. | ||
|