Error on bench update - develop branch

.
.
.
.
.
From GitHub - frappe/razorpay_integration: Rajorpay integration with Frappe/ERPNext

  • branch master → FETCH_HEAD
    Already up-to-date.
    Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages
    Migrating erpnext-fix
    Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘doctype’, force=True) #2017-03-09 in erpnext-fix (d05df03cf4)
    Success
    Executing execute:frappe.reload_doc(‘core’, ‘doctype’, ‘docfield’, force=True) #2017-03-03 in erpnext-fix (d05df03cf4)
    Traceback (most recent call last):
    File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
    main”, fname, loader, pkg_name)
    File “/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py”, line 72, in _run_code
    exec code in run_globals
    File “/Users/haitham/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
    main()
    File “/Users/haitham/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
    click.Group(commands=commands)(prog_name=‘bench’)
    File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 716, in call
    return self.main(*args, **kwargs)
    File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 696, in main
    rv = self.invoke(ctx)
    File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
    File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
    File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
    return callback(*args, **kwargs)
    File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
    File “/Users/haitham/frappe-bench/apps/frappe/frappe/commands/init.py”, line 24, in _func
    ret = f(frappe._dict(ctx.obj), *args, **kwargs)
    File “/Users/haitham/frappe-bench/apps/frappe/frappe/commands/site.py”, line 210, in migrate
    migrate(context.verbose, rebuild_website=rebuild_website)
    File “/Users/haitham/frappe-bench/apps/frappe/frappe/migrate.py”, line 31, in migrate
    frappe.modules.patch_handler.run_all()
    File “/Users/haitham/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 29, in run_all
    if not run_single(patchmodule = patch):
    File “/Users/haitham/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 63, in run_single
    return execute_patch(patchmodule, method, methodargs)
    File “/Users/haitham/frappe-bench/apps/frappe/frappe/modules/patch_handler.py”, line 93, in execute_patch
    frappe.db.commit()
    File “/Users/haitham/frappe-bench/apps/frappe/frappe/database.py”, line 727, in commit
    sync_global_search()
    File “/Users/haitham/frappe-bench/apps/frappe/frappe/utils/global_search.py”, line 76, in sync_global_search
    content = %(content)s’‘’, value)
    File “/Users/haitham/frappe-bench/apps/frappe/frappe/database.py”, line 138, in sql
    self._cursor.execute(query, values)
    File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/cursors.py”, line 205, in execute
    self.errorhandler(self, exc, value)
    File “/Users/haitham/frappe-bench/env/lib/python2.7/site-packages/MySQLdb/connections.py”, line 36, in defaulterrorhandler
    raise errorclass, errorvalue
    _mysql_exceptions.OperationalError: (1054, “Unknown column ‘published’ in ‘field list’”)

@makarand_b can you help on this?

@haitham,

Please make sure that both erpnext and frappe app are on same branch then try to update.

Thanks,
Makarand