def migrate(verbose=True, rebuild_website=False):
 clear_global_cache()
 frappe.modules.patch_handler.run_all()
 frappe.model.sync.sync_all(verbose=verbose)
 frappe.translate.clear_cache()
 sync_fixtures()
 sync_customizations()
 sync_desktop_icons()
 sync_languages()
 frappe.get_doc(u'Portal Settings', u'Portal Settings').sync_menu()
 render.clear_cache()
 frappe.db.commit()
 if (not frappe.conf.get(u'global_help_setup')):
  frappe.utils.help.sync()
 clear_notifications()
 frappe.publish_realtime(u'version-update')

def migrate ( verbose = True , rebuild_website = False ) : clear_global_cache ( ) frappe . modules . patch_handler . run_all ( ) frappe . model . sync . sync_all ( verbose = verbose ) frappe . translate . clear_cache ( ) sync_fixtures ( ) sync_customizations ( ) sync_desktop_icons ( ) sync_languages ( ) frappe . get_doc ( u'Portal Settings' , u'Portal Settings' ) . sync_menu ( ) render . clear_cache ( ) frappe . db . commit ( ) if ( not frappe . conf . get ( u'global_help_setup' ) ) : frappe . utils . help . sync ( ) clear_notifications ( ) frappe . publish_realtime ( u'version-update' )
perform a migration .