Odoo database migration will depend on your version moves. They are different. And the migration can only be taken one version up each time.

Do these in odoo 13 production environment

Go to odoo-bin path:

# cd /odoo/odoo-server/ Sign in as odoo user:

# sudo su odoo

Here is the update syntax:

# ./odoo-bin –database=yourDB –config=/etc/odoo-server.conf –update all –stop-after-init

Source:

Odoo Community 13 to 14 database migration | Odoo

http://biroinfotek.com/upgrade-odoo-12-to-13-using-openupgrade/

https://oca.github.io/OpenUpgrade/