mirror of
https://github.com/inventree/InvenTree.git
synced 2026-07-17 20:23:50 +00:00
Adjust default behavior of "migrate" command (#12320)
* Adjust default behavior of "migrate" command
- Does not create new migration files automatically
* Add dummy field - ensure detected by CI
* Revert "Add dummy field - ensure detected by CI"
This reverts commit e7a101fe87.
* Fix typo
* Adjust contributing docs
* Add CHANGELOG entry
This commit is contained in:
@@ -1070,10 +1070,13 @@ def listbackups(c):
|
||||
},
|
||||
)
|
||||
@state_logger
|
||||
def migrate(c, detect: bool = True, verbose: bool = False):
|
||||
"""Performs database migrations.
|
||||
def migrate(c, detect: bool = False, verbose: bool = False):
|
||||
"""Performs database migrations. This is a critical step if the database schema has been altered.
|
||||
|
||||
This is a critical step if the database schema have been altered!
|
||||
Arguments:
|
||||
c: Command line context.
|
||||
detect: Whether to detect and create new migrations based on changes to models. Default is False.
|
||||
verbose: Whether to print verbose output from migration commands. Default is False.
|
||||
"""
|
||||
info('Running InvenTree database migrations...')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user