2
0
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:
Saurabh 2017-09-27 17:47:09 +05:30
parent d1c73b20d0
commit 51b569a01e

View File

@ -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)