diff --git a/tasks.py b/tasks.py index d807c45776..2053ddfd9c 100644 --- a/tasks.py +++ b/tasks.py @@ -468,6 +468,12 @@ def migrate(c): print('InvenTree database migrations completed!') +@task(help={'app': 'Specify an app to show migrations for (leave blank for all apps)'}) +def showmigrations(c, app=''): + """Show the migration status of the database.""" + manage(c, f'showmigrations {app}', pty=True) + + @task( post=[clean_settings, translate_stats], help={