Describe the issue or problem
Hi - this is very similar to Another upgrade from 3.3 to 3.4 issue - fails with error about dois table. How to continue?
I upgrade an OJS installation from 3.3.0.16 to 3.4.0.4.
This one fails with
2024-01-12 11:16:39 [downgrade for "PKP\migration\upgrade\v3_4_0\I6895_CreateNewInstitutionsTables" unsupported: Downgrade not supported]
ERROR: Upgrade failed: DB: SQLSTATE[23502]: Not null violation: 7 ERROR: column "institution_id" of relation "institutional_subscriptions" contains null values (SQL: alter table "institutional_subscriptions" add column "institution_id" bigint not null)
Steps I took leading up to the issue
For example:
php tools/upgrade.php check
php tools/upgrade.php upgrade
- See error
What application are you using?
For example, OJS 3.3.0-16
Additional information
This journal has around 200 institutional subscriptions.
From what I can see the tables institutions
, institutions_settings
and institutions_ip
are empty.
Earlier in the migration there was the message:
2024-01-12 11:15:58 [Removing orphaned entries from "institutional_subscriptions" with an invalid value for the required column "subscription_id". The following IDs do not exist at the reference table "subscriptions":
5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 38, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 58, 59, 60, 62, 63, 64, 66, 84, 85, 87, 88, 89, 90, 92, 95, 98, 100, 101, 102, 104, 105, 106, 109, 110, 114, 145, 267, 304]