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


Odoo Community 13 to 14 database migration | Odoo

Upgrade Odoo 12 to 13 Using OpenUpgrade