How to ensure that my database, and changes made will remain as they are while converting v17 back to v16. And how to do the revert safely. Thank you.
Frappe doesn’t have a “rollback” or “migrate down” command. Once those develop branch (v17) patches hit your database, they’re permanent.
You can try running: bench switch-to-branch version-16 frappe erpnext and bench migrate
This can work on development instance if you keep any eye on the errors in the console, if no errors being shown you’re good to go, otherwise start a fresh v16 branch and install your apps there. You’re more likely to encounter errors so it’s better to start fresh.
If you’re on a production setup, your only option is to restore from a backup but first make sure your bench is on the version-16 branch. Restore the database from the last backup you took before you accidentally moved to develop branch (v17). In the future, always run bench backup before touching branches.
Okay I understood, thank you very much