Question regarding : Update ERPNext

  1. 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?

  2. 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.

  1. Custom Fields, Scripts, β†’ Safe :white_check_mark: (Stored in the database)
  2. Custom Reports β†’ Safe :white_check_mark: (If created separately)
    • Modified Standard Reports β†’ Lost :x: (Overwritten)
    • If override report in custom app β†’ Safe :white_check_mark:
  3. Modified Standard Code β†’ Lost :x:
    • If override method in custom app β†’ Safe :white_check_mark:
  4. Auto Email Report & Notifications β†’ Safe :white_check_mark:
  5. Custom Apps β†’ Safe :white_check_mark: (If properly maintained)
  6. Database β†’ Safe :white_check_mark: (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.

1 Like

Hi,

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?