Skip to content

Commit

Permalink
Merge pull request #111 from jonasraoni/bugfix-stable-3_3_0-101-attem…
Browse files Browse the repository at this point in the history
…pt-upgrade

#101 Attempts to re-run the migrations whenever the plugin is going t…
  • Loading branch information
jonasraoni authored Feb 5, 2025
2 parents 1ea14e3 + 9d69ab8 commit 5479741
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion classes/tasks/Depositor.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

class Depositor extends ScheduledTask {

/** @var object */
/** @var PLNPlugin */
var $_plugin;

/**
Expand All @@ -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->_plugin->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 5479741

Please sign in to comment.