Update error : relation "oc_migrations" already exists

trying to update my nextcloud 20.0.14 to 21.0.9
started the update via CLI (udpater.phar) and getting the error:

Doctrine\DBAL\Exception\TableExistsException: An exception occurred while executing a query: SQLSTATE[42P07]: Duplicate table: 7 ERROR: relation “oc_migrations” already exists

upgraded my PostgreSQL 9.2 to 13
after the upgrade the nextcoud updater could finish the update successfully