Make odoo openupgrade wizard working in the following combination: Odoo version <= 12 + Postgresql version >= 14