This is the stacktrace for the error.
Executing execute:frappe.reload_doc('core', 'doctype', 'version') #2014-02-21 in erpnext
Traceback (innermost last):
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 63, in execute_patch
exec patchmodule.split("execute:")[1] in globals()
File "<string>", line 1, in <module>
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/__init__.py", line 343, in reload_doc
return frappe.modules.reload_doc(module, dt, dn, force=force)
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/modules/__init__.py", line 35, in reload_doc
return import_files(module, dt, dn, force=force)
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 17, in import_files
return import_file(module, dt, dn, force=force)
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 22, in import_file
ret = import_file_by_path(path, force)
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 50, in import_file_by_path
import_doc(doc)
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/modules/import_file.py", line 110, in import_doc
doc.insert()
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 139, in insert
self.run_post_save_methods()
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 394, in run_post_save_methods
self.run_method("on_update")
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 367, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 432, in composer
return composed(self, method, *args, **kwargs)
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 415, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/model/document.py", line 365, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/core/doctype/doctype/doctype.py", line 78, in on_update
updatedb(self.name)
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 376, in updatedb
tab.sync()
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 169, in sync
self.create()
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/model/db_schema.py", line 89, in create
CHARACTER SET=utf8""" % (self.name, add_text))
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/database.py", line 118, in sql
self._cursor.execute(query)
File "/home/anirvan/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)
File "/home/anirvan/frappe/frappe-bench/env/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6),\n\t\t\tmodified datetime(6),\n\t\t\tmodified_by varchar(40),\n\t\t\towner varchar(60),\n' at line 3")
execute:frappe.reload_doc('core', 'doctype', 'version') #2014-02-21: failed: STOPPED
Traceback (most recent call last):
File "scripts/3to4.py", line 33, in <module>
migrate(args.site)
File "scripts/3to4.py", line 27, in migrate
latest()
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/cli.py", line 63, in new_fn
return fn(*args, **new_kwargs)
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/cli.py", line 368, in latest
frappe.modules.patch_handler.run_all()
File "/home/anirvan/frappe/frappe-bench/apps/frappe/frappe/modules/patch_handler.py", line 27, in run_all
raise PatchError(patch)
frappe.modules.patch_handler.PatchError: execute:frappe.reload_doc('core', 'doctype', 'version') #2014-02-21