diff --git a/tasks.py b/tasks.py index e2fd3c7396..0b4be168b0 100644 --- a/tasks.py +++ b/tasks.py @@ -454,6 +454,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={