2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00

[temp] moved migrate_to_v5

This commit is contained in:
Rushabh Mehta 2016-06-14 16:03:42 +05:30
parent 253f72fba3
commit 2d716f261d

View File

@ -502,9 +502,9 @@ def validate_upgrade(from_ver, to_ver, bench='.'):
raise Exception("Please install nodejs and npm")
def pre_upgrade(from_ver, to_ver, bench='.'):
from .migrate_to_v5 import remove_shopping_cart
pip = os.path.join(bench, 'env', 'bin', 'pip')
if from_ver <= 4 and to_ver >= 5:
from .migrate_to_v5 import remove_shopping_cart
apps = ('frappe', 'erpnext')
remove_shopping_cart(bench=bench)