Hey @marc @kaitlin @asmecher
Migration script was trying to change the class_names and since migration didnt happen completely. I got a lot of duplicate entry error. I was trying to resolve it manually in the db and then I got this issue which I think I need your attention to resolve it.
/var/www/html # php tools/upgrade.php upgrade
2025-06-04 12:43:02 [pre-install]
2025-06-04 12:43:02 [load: upgrade.xml]
2025-06-04 12:43:02 [version: 3.4.0.9]
2025-06-04 12:43:02 [code: Installer Installer::checkPhpVersion]
2025-06-04 12:43:02 [code: Installer Installer::installDefaultNavigationMenus]
WARNING: The NavigationMenu (ContextId: 1, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
WARNING: The NavigationMenu (ContextId: 1, Title: Primary Navigation Menu, Area: primary) will be skipped because the specified area has already a NavigationMenu attached.
WARNING: The NavigationMenu (ContextId: 0, Title: User Navigation Menu, Area: user) will be skipped because the specified area has already a NavigationMenu attached.
2025-06-04 12:43:02 [code: Installer Installer::migrateStaticPagesToNavigationMenuItems]
2025-06-04 12:43:02 [migration: PKP\migration\upgrade\v3_4_0\I10249_FixProfileImageDataLoss]
2025-06-04 12:43:02 [migration: APP\migration\upgrade\v3_4_0\PreflightCheckMigration]
2025-06-04 12:43:02 [Removing orphaned announcement type ID 1 with no matching context ID.]
2025-06-04 12:43:03 [Removing orphaned announcement type ID 2 with no matching context ID.]
2025-06-04 12:43:03 [Removing orphaned announcement type ID 3 with no matching context ID.]
2025-06-04 12:43:03 [migration: PKP\migration\upgrade\v3_4_0\I8060_UpdateUserLocalesDefaultToEmptyArrayFromNull]
2025-06-04 12:43:03 [migration: PKP\migration\upgrade\v3_4_0\I7245_UpdateUserLocaleStringToParsableJsonString]
2025-06-04 12:43:03 [migration: APP\migration\upgrade\v3_4_0\I7129_IssueEntityDAORefactor]
2025-06-04 12:43:03 [revert migration: PKP\migration\upgrade\v3_4_0\I7245_UpdateUserLocaleStringToParsableJsonString]
2025-06-04 12:43:03 [downgrade for “PKP\migration\upgrade\v3_4_0\I7245_UpdateUserLocaleStringToParsableJsonString” unsupported: Downgrade not supported]
ERROR: Upgrade failed: DB: SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name ‘current_issue_id’ (SQL: alter table journals
add current_issue_id
bigint null)
/var/www/html #
DESCRIBE journals
Field |
Type |
Null |
Key |
Default |
Extra |
journal_id |
bigint(20) |
NO |
PRI |
NULL |
auto_increment |
path |
varchar(32) |
NO |
UNI |
NULL |
|
seq |
double(8,2) |
NO |
|
0.00 |
|
primary_locale |
varchar(14) |
NO |
|
NULL |
|
enabled |
smallint(6) |
NO |
|
1 |
|
current_issue_id |
bigint(20) |
YES |
MUL |
NULL |
|