Upgrading and migrations
Upgrading and migrations
Always back up the database and files before upgrading.
bench --site your.site.name backup --with-files
cd apps/ir
git fetch --all --tags
git checkout version-16
git pull --ff-only
cd ../..
bench --site your.site.name migrate
bench build --app ir
bench --site your.site.name clear-cache
bench --site your.site.name clear-website-cache
bench restart
The application contains historical patches that migrate retired fields and older DocTypes into consolidated intervention and outcome models. Do not trim removed database columns before the relevant migrations have completed. Test upgrades against a restored copy of production data first.
Useful checks:
bench --site your.site.name doctor
bench --site your.site.name list-apps
bench --site your.site.name console
Last updated 7 hours ago
Was this helpful?