From 006a2ccaa55229a5db050fcb813cd898a69148e5 Mon Sep 17 00:00:00 2001 From: Jonas Raoni Soares da Silva Date: Sat, 1 Feb 2025 17:24:41 +0300 Subject: [PATCH] #101 Attempts to re-run the migrations whenever the plugin is going to run a sync --- classes/tasks/Depositor.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/classes/tasks/Depositor.php b/classes/tasks/Depositor.php index fb9bf56..2aaf61b 100644 --- a/classes/tasks/Depositor.php +++ b/classes/tasks/Depositor.php @@ -20,6 +20,7 @@ use APP\plugins\generic\pln\classes\deposit\Repository as DepositRepository; use APP\plugins\generic\pln\classes\depositObject\Repository as DepositObjectRepository; use APP\plugins\generic\pln\classes\DepositPackage; +use APP\plugins\generic\pln\classes\migration\install\SchemaMigration; use APP\plugins\generic\pln\PlnPlugin; use Exception; use PKP\db\DAORegistry; @@ -56,6 +57,9 @@ public function executeActions(): bool { $this->addExecutionLogEntry('PKP Preservation Network Processor', ScheduledTaskHelper::SCHEDULED_TASK_MESSAGE_TYPE_NOTICE); + // @todo Re-running the plugin migrations shouldn't be needed. But users are having issues, so better to keep it until we can ensure plugin migrations are executed properly + (new SchemaMigration())->up(); + /** @var JournalDAO */ $journalDao = DAORegistry::getDAO('JournalDAO'); // For all journals