Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenliang123 committed Jun 17, 2024
1 parent ed74e16 commit 19b3cf2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/db-migration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ 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: |
Expand Down
4 changes: 2 additions & 2 deletions api/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,9 +562,9 @@ def db_migrate():
if lock.acquire(blocking=False):
try:
import flask_migrate
click.echo('Start database migration.')
click.echo(click.style('Start database migration.', fg='green'))
flask_migrate.upgrade()
print('Database migration successful!')
click.echo(click.style('Database migration successful!', fg='green'))
finally:
lock.release()
else:
Expand Down

0 comments on commit 19b3cf2

Please sign in to comment.