From 19b3cf26bae2c9ae015d30f119f98dc0d46a0dba Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Mon, 17 Jun 2024 22:35:55 +0800 Subject: [PATCH] update --- .github/workflows/db-migration-test.yml | 2 +- api/commands.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/db-migration-test.yml b/.github/workflows/db-migration-test.yml index 29cdcd4ac0d3e4..158be4f5133d80 100644 --- a/.github/workflows/db-migration-test.yml +++ b/.github/workflows/db-migration-test.yml @@ -38,7 +38,7 @@ jobs: - name: Install dependencies run: poetry install -C api - - name: Set up Middleware + - name: Set up Middlewares uses: hoverkraft-tech/compose-action@v2.0.0 with: compose-file: | diff --git a/api/commands.py b/api/commands.py index 9fafeba29b52cb..146bd995a43a12 100644 --- a/api/commands.py +++ b/api/commands.py @@ -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: