psycopg2.errors.DuplicateTable: relation "A" already exists
02:33 08 Jan 2026
2026-01-08 05:57:29,204 21064 ERROR db_name OpenUpgrade: Error after 0:00:00.000712 running CREATE TABLE table_name
        (project_task_id INTEGER, res_users_id INTEGER) 
2026-01-08 05:57:29,204 21064 ERROR db_name OpenUpgrade: project: error in migration script /home/ubuntu/Documents/odoo-14.0/OpenUpgrade-14.0/openupgrade_scripts/scripts/project/14.0.1.1/pre-migration.py: relation "table_name" already exists

This error occurred while I'm doing a db migration from odoo13 to odoo14. I tried dropping the relation before migration and create the table only if it not exist. In both ways migration is completed, but number of records differ before and after migration..

postgresql odoo