Hello,
While upgrading from 3.4.0-5 to 3.5.0-1, I am getting the following errors.
Earlier we had 3 journals in a single OJS installation. Later we have separated with own OJS installation. Now in the installation journal 3 exists, not 1 and 2.
ERROR: Upgrade failed: DB: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (jour_ojs667.invitations, CONSTRAINT invitations_context_id FOREIGN KEY (context_id) REFERENCES journals (journal_id) ON DELETE CASCADE) (Connection: mysql, SQL: insert into invitations (type, user_id, context_id, email, inviter_id, status, payload, updated_at, created_at) values (reviewerAccess, 27, 2, ?, ?, INITIALIZED, {âreviewAssignmentIdâ:null}, 2025-10-02 05:43:46, 2025-10-02 05:43:46))
Upgrade failed: DB: SQLSTATE[42S22]: Column not found: 1054 Unknown column âcontextâ in ânotification_subscription_settingsâ (Connection: mysql, SQL: alter table notification_subscription_settings modify context bigint null)
Upgrade failed: DB: SQLSTATE[42S22]: Column not found: 1054 Unknown column âredirectâ in âsiteâ (Connection: mysql, SQL: alter table site modify redirect bigint null)
ERROR: Upgrade failed: DB: SQLSTATE[HY000]: General error: 1005 Canât create table jour_ojs667.filters (errno: 121 âDuplicate key on write or updateâ) (Connection: mysql, SQL: alter table filters add constraint filters_parent_filter_id foreign key (parent_filter_id) references filters (filter_id) on delete cascade)
Kindly guide to upgrade successfully.