I am creating a custom app to store custom fields. Once I have made changes in GitHub master, bench update will fetch those changes which is great.
However, that also updates bench/erpnext as well. Is there a quicker way to just update my app? github fetch or do I need to bench update to reflect changes in ERPNext?
If there are only field changes (adding fields/updating current ones) then you would need to do the following:
- Go to the the app directory (in frappe-bench/apps/custom-app) and pull the changes (
- Go back to the frappe-bench directory and run the migrate command:
bench migrate (in case of multiple sites, run the command with the site flag:
bench --site sitename migrate)
- bench migrate is the migration script which makes the appropriate changes in the db
- In case you want to restart all processes, you can do
Fantastic thank you.
Now that Iv just got to figure out how to actually add a custom field into core doctypes!
Once Iv got it working il write up a how to and post it here (From app creation to posting to GIT).