Error updating OMP

Hello, I’m trying to update the OMP from version 3.1.1-4 to 3.2.1-2, but when I run the update script it sends the error below. I ask for help if anyone knows what the solution is. I’m using the postgresql database.

ADOConnection._Execute(ALTER TABLE email_templates DROP INDEX email_templates_assoc, DROP INDEX email_templates_email_key, false) % line 1241, file: [adodb.inc.php](file://var/www/html/omp/lib/pkp/lib/vendor/adodb/adodb-php/adodb.inc.php) ADOConnection.Execute(ALTER TABLE email_templates DROP INDEX email_templates_assoc, DROP INDEX email_templates_email_key) % line 442, file: [Installer.inc.php](file://var/www/html/omp/lib/pkp/classes/install/Installer.inc.php) Installer.executeSQL(ALTER TABLE email_templates DROP INDEX email_templates_assoc, DROP INDEX email_templates_email_key) % line 437, file: [Installer.inc.php](file://var/www/html/omp/lib/pkp/classes/install/Installer.inc.php) Installer.executeSQL(Array[10]) % line 395, file: [Installer.inc.php](file://var/www/html/omp/lib/pkp/classes/install/Installer.inc.php) Installer.executeAction(Array[3]) % line 263, file: [Installer.inc.php](file://var/www/html/omp/lib/pkp/classes/install/Installer.inc.php)

Errors occurred during installation:

  • A database error has occurred: ERROR: syntax error at or near “email_templates_assoc” LINE 1: ALTER TABLE email_templates DROP INDEX email_templates_assoc… ^

Probably the OMP is generating this query with a syntax error, but I don’t know what to do to get around the problem.

ALTER TABLE email_templates DROP INDEX email_templates_assoc, DROP INDEX email_templates_email_key