mirror of
https://github.com/frappe/bench.git
synced 2025-01-08 16:14:12 +00:00
[fix] display major version upgrade notification while updating
This commit is contained in:
parent
d1c73b20d0
commit
51b569a01e
@ -45,6 +45,15 @@ def update(pull=False, patch=False, build=False, bench=False, auto=False, restar
|
||||
if conf.get('release_bench'):
|
||||
print('Release bench, cannot update')
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user