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 a55b3f2 commit b2a8b07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def create_tenant(email: str, language: Optional[str] = None):
'Account: {}\nPassword: {}'.format(email, new_password), fg='green'))


@click.command('db-migrate', help='migrate the database')
@click.command('upgrade-db', help='upgrade the database')
def db_migrate():
click.echo('Preparing database migration...')
lock = redis_client.lock(name='db_upgrade_lock', timeout=60)
Expand All @@ -576,6 +576,7 @@ def db_migrate():
else:
click.echo('Database migration skipped')


def register_commands(app):
app.cli.add_command(reset_password)
app.cli.add_command(reset_email)
Expand Down

0 comments on commit b2a8b07

Please sign in to comment.