From 5a582564e3fcf97aba0e9595807e1cdecb408210 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 6 Apr 2018 13:20:11 +0530 Subject: [PATCH] [fix] add data integration to sync sequence --- frappe/model/sync.py | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/frappe/model/sync.py b/frappe/model/sync.py index b4fceb0c94..5b32b2a1b9 100644 --- a/frappe/model/sync.py +++ b/frappe/model/sync.py @@ -27,10 +27,21 @@ def sync_for(app_name, force=0, sync_everything = False, verbose=False, reset_pe if app_name == "frappe": # these need to go first at time of install - for d in (("core", "docfield"), ("core", "docperm"), ("core", "has_role"), ("core", "doctype"), - ("core", "user"), ("core", "role"), ("custom", "custom_field"), - ("custom", "property_setter"), ("website", "web_form"), - ("website", "web_form_field"), ("website", "portal_menu_item")): + for d in (("core", "docfield"), + ("core", "docperm"), + ("core", "has_role"), + ("core", "doctype"), + ("core", "user"), + ("core", "role"), + ("custom", "custom_field"), + ("custom", "property_setter"), + ("website", "web_form"), + ("website", "web_form_field"), + ("website", "portal_menu_item"), + ("data_migration", "data_migration_mapping_detail"), + ("data_migration", "data_migration_mapping"), + ("data_migration", "data_migration_plan_mapping"), + ("data_migration", "data_migration_plan")): files.append(os.path.join(frappe.get_app_path("frappe"), d[0], "doctype", d[1], d[1] + ".json"))