Hi,
When upgrading ojs to 3.2.1.2 to 3.3.0.6, i have this error :
“ERROR: Upgrade failed: DB: PDOException: SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘files’ already exists in /var/sites/ojs/lib/pkp/lib/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:115”.
In this post, the same problem is reported :
I followed your advices but the same error persist. The server is installed with php7.3 and mariadb 15.1 and ojs is installed since 2.4.2 version with several upgrades without problems.
Hi,
I was able to move forward with this database upgrade error.
When trying to change engine tables from myisam to innodb, mariadb gives an error when processing “submission_file_revisions” table.
The foreign key constraint “submission_file_revisions_submission_file_id_foreign” references the field “submission_file_id” on “submission_files” table. This field “submission_file_id” doesn’t exist in “submission_files” table in our database.
Is this only a problem in our local database or other users have the same problem ?
I’ll try to drop this foreign key temporarily to make the upgrade.