From 442f2594d04f3b07f0c5645424031ef61a616504 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 20 Jun 2024 21:14:47 +1000 Subject: [PATCH] Add "showmigrations" task to invoke (#7482) - Helpful for debugging user installs --- tasks.py | 6 ++++++ 1 file changed, 6 insertions(+) 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={