2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-24 23:48:24 +00:00

Merge pull request #488 from saurabh6790/version_upgrade_notification

[fix] display major version upgrade notification while updating
This commit is contained in:
Nabin Hait 2017-09-27 17:51:09 +05:30 committed by GitHub
commit d174adca63

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)