Add "showmigrations" task to invoke (#7482) (#7484)

- Helpful for debugging user installs

(cherry picked from commit 442f2594d0)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot] 2024-06-20 21:22:36 +10:00 committed by GitHub
parent 91c5843425
commit b17c835218
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -454,6 +454,12 @@ def migrate(c):
print('InvenTree database migrations completed!') 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( @task(
post=[clean_settings, translate_stats], post=[clean_settings, translate_stats],
help={ help={