mirror of
https://github.com/sstent/GarminSync.git
synced 2026-01-26 09:02:51 +00:00
updated web interface - v3
This commit is contained in:
@@ -159,6 +159,19 @@ def daemon_mode(
|
||||
else:
|
||||
typer.echo("Please specify one of: --start, --stop, --status")
|
||||
|
||||
@app.command("migrate")
|
||||
def migrate_activities():
|
||||
"""Migrate database to add new activity fields"""
|
||||
from .migrate_activities import migrate_activities as run_migration
|
||||
|
||||
typer.echo("Starting database migration...")
|
||||
success = run_migration()
|
||||
if success:
|
||||
typer.echo("Database migration completed successfully!")
|
||||
else:
|
||||
typer.echo("Database migration failed!")
|
||||
raise typer.Exit(code=1)
|
||||
|
||||
def main():
|
||||
app()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user