Upgrade failure (Postgresql)

Hi @asmecher

The previous error was solved. But now I’m getting:

[data: dbscripts/xml/upgrade/3.0.0_update.xml]
ERROR: Upgrade failed: DB: ERROR:  duplicate key value violates unique constraint "review_rounds_submission_id_stage_id_round_pkey"
DETALHE:  Key (submission_id, stage_id, round)=(98792, 3, 1) already exists.

Postgres log:

ERROR:  duplicate key value violates unique constraint "review_rounds_submission_id_stage_id_round_pkey"
DETAIL:  Key (submission_id, stage_id, round)=(98792, 3, 1) already exists.
STATEMENT:  UPDATE review_rounds SET stage_id=3

OJS 2.4.8.0 database:

revistas=> select * from review_rounds where submission_id = 98792;
 review_round_id | submission_id | stage_id | round | review_revision | status 
-----------------+---------------+----------+-------+-----------------+--------
            5718 |         98792 |          |     1 |               1 |       
            5719 |         98792 |          |     1 |               1 |       
            5889 |         98792 |          |     1 |               1 |       
            5894 |         98792 |          |     1 |               1 |       
            6918 |         98792 |          |     1 |               1 |       
            7588 |         98792 |          |     1 |               1 |       
            7589 |         98792 |          |     1 |               1 |       
(7 rows)

Bizarre…

Regards,
Tarcisio Pereira.