Skip to content

Commit

Permalink
pkp#101 Attempts to re-run the migrations whenever the plugin is goin…
Browse files Browse the repository at this point in the history
…g to run a sync
  • Loading branch information
jonasraoni committed Feb 1, 2025
1 parent feb6491 commit 291c0bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions classes/tasks/Depositor.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ public function getName() {
public function executeActions() {
if (!$this->_plugin) return false;

// @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
$this->import('classes.migration.install.PLNPluginSchemaMigration');
(new PLNPluginSchemaMigration())->up();

$this->addExecutionLogEntry('PKP Preservation Network Processor', SCHEDULED_TASK_MESSAGE_TYPE_NOTICE);

$journalDao = DAORegistry::getDAO('JournalDAO');
Expand Down

0 comments on commit 291c0bf

Please sign in to comment.