From b17c835218fe85eb70da1fa8b7d6a878fe94015c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 20 Jun 2024 21:22:36 +1000 Subject: [PATCH] Add "showmigrations" task to invoke (#7482) (#7484) - Helpful for debugging user installs (cherry picked from commit 442f2594d04f3b07f0c5645424031ef61a616504) Co-authored-by: Oliver --- tasks.py | 6 ++++++ 1 file changed, 6 insertions(+) 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={