mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add "showmigrations" task to invoke (#7482)
- Helpful for debugging user installs
This commit is contained in:
parent
758871b8a9
commit
442f2594d0
6
tasks.py
6
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={
|
||||
|
Loading…
Reference in New Issue
Block a user