In ERPNext, I have made extensive customizations, including field-level , report customizations, automated emails, and more. If I update ERPNext using bench update, will all my customizations be removed?
I have also change the standard code.
Additionally, will the affect my database?
Please explain each aspect in detail, as data is my top priority.
Custom Fields, Scripts, β Safe (Stored in the database)
Custom Reports β Safe (If created separately)
Modified Standard Reports β Lost (Overwritten)
If override report in custom app β Safe
Modified Standard Code β Lost
If override method in custom app β Safe
Auto Email Report & Notifications β Safe
Custom Apps β Safe (If properly maintained)
Database β Safe (But take backups to prevent schema conflicts)
We suggest using a custom app to store custom fields, scripts, and property setters. Please avoid modifying the standard code in the base app. If it is overrideable, you can handle it through the custom app.
When one tries to update after customizations, doesnβt bench update report:
WARN: shallow_clone is set in your bench config.
However without passing the --reset flag, your repositories will be unshallowed.
To avoid this, cancel this operation and run bench update --reset.
Consider the consequences of git reset --hard on your apps before you run that.
To avoid seeing this warning, set shallow_clone to false in your common_site_config.json
Can bench update --reset be used in this case, or a git modification?