Add "showmigrations" task to invoke (#7482)

- Helpful for debugging user installs
This commit is contained in:
Oliver 2024-06-20 21:14:47 +10:00 committed by GitHub
parent 758871b8a9
commit 442f2594d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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={