Hello, I just performed a bench update in hopes it would rebuild the python files. From the very little information I can find this seemed the way.
After the update completed I have lost many days of work on CutomDocs I have made. The database is correct but the .json files where somehow reverted back to a very old state.
I have three custom doctypes that have been changed.
Is there anyway I can recover this. It would save me a bunch of time.
On branch master
Your branch is up-to-date with 'upstream/master'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
erpnext/accounts/print_format/non_disclosureagreement/
erpnext/accounts/print_format/testing/
erpnext/hr/doctype/non_disclosure_agreement/
erpnext/stock/doctype/attach_document/
erpnext/stock/doctype/document/
nothing added to commit but untracked files present (use "git add" to track)
This is what I get when I run git reflog.
108bc78 HEAD@{0}: pull: Fast-forward
6cb8662 HEAD@{1}: reset: moving to HEAD@{8}
9e19251 HEAD@{2}: revert: Revert "Merge branch 'develop'"
108bc78 HEAD@{3}: pull: Fast-forward
6cb8662 HEAD@{4}: reset: moving to HEAD@{5}
574415b HEAD@{5}: reset: moving to HEAD@{1}
6cb8662 HEAD@{6}: reset: moving to ORIG_HEAD
574415b HEAD@{7}: reset: moving to HEAD^
6cb8662 HEAD@{8}: reset: moving to HEAD@{1}
108bc78 HEAD@{9}: pull upstream master: Fast-forward
6cb8662 HEAD@{10}: clone: from https://github.com/frappe/erpnext
Some of the HEAD are me trying to revert back to what was lost.
Does the ‘bench update’ command perform a commit or merge before the pull?
Your customize doctype should not belong to erpnext app. You have to create a new app for your customization see https://frappe.github.io/frappe/user/tutorial/ so that everytime the core developers has new update your Customization will not be affected
So, creating a new custom doctype in setup is not the way to add something to the Stock category? I am surprised that you can create a new doctype and it will be wiped out if there is an update.
I am confused as to why the files related to my custom doctypes where even changed if they where not apart of GIT.
@zeroxcorbin the update dropped your customizations because you have created the doctypes with the instance in “developer mode”, while in developer mode, do you need keep it in a custom app.