mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
- Helpful for debugging user installs
(cherry picked from commit 442f2594d0
)
Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
parent
91c5843425
commit
b17c835218
6
tasks.py
6
tasks.py
@ -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={
|
||||||
|
Loading…
Reference in New Issue
Block a user