mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 16:36:25 +00:00
[fix] display major version upgrade notification while updating
This commit is contained in:
parent
d1c73b20d0
commit
51b569a01e
@ -46,6 +46,15 @@ def update(pull=False, patch=False, build=False, bench=False, auto=False, restar
|
|||||||
print('Release bench, cannot update')
|
print('Release bench, cannot update')
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
version_upgrade = is_version_upgrade()
|
||||||
|
|
||||||
|
if version_upgrade[0]:
|
||||||
|
print()
|
||||||
|
print()
|
||||||
|
print("This update will cause a major version change in Frappe/ERPNext from {0} to {1}.".format(*version_upgrade[1:]))
|
||||||
|
print("This would take significant time to migrate and might break custom apps.")
|
||||||
|
click.confirm('Do you want to continue?', abort=True)
|
||||||
|
|
||||||
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, force=force, reset=reset)
|
_update(pull, patch, build, bench, auto, restart_supervisor, requirements, no_backup, force=force, reset=reset)
|
||||||
|
|
||||||
def _update(pull=False, patch=False, build=False, update_bench=False, auto=False, restart_supervisor=False,
|
def _update(pull=False, patch=False, build=False, update_bench=False, auto=False, restart_supervisor=False,
|
||||||
|
Loading…
Reference in New Issue
Block a user