Skip to content

Commit

Permalink
fix(Tinebase/Update/17.13): add missing SchedulerTask model update
Browse files Browse the repository at this point in the history
  • Loading branch information
pschuele committed Sep 25, 2024
1 parent 601a928 commit 169ad7f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tine20/Tinebase/Model/SchedulerTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Tinebase_Model_SchedulerTask extends Tinebase_Record_NewAbstract
* @var array
*/
protected static $_modelConfiguration = [
'version' => 2,
'version' => 3,
'recordName' => 'Scheduler task',
'recordsName' => 'Scheduler tasks', // ngettext('Scheduler task', 'Scheduler tasks', n)
//'containerProperty' => 'container_id',
Expand Down
14 changes: 14 additions & 0 deletions tine20/Tinebase/Setup/Update/17.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class Tinebase_Setup_Update_17 extends Setup_Update_Abstract
protected const RELEASE017_UPDATE010 = __CLASS__ . '::update010';
protected const RELEASE017_UPDATE011 = __CLASS__ . '::update011';
protected const RELEASE017_UPDATE012 = __CLASS__ . '::update012';
protected const RELEASE017_UPDATE013 = __CLASS__ . '::update013';

static protected $_allUpdates = [
self::PRIO_TINEBASE_BEFORE_EVERYTHING => [
Expand Down Expand Up @@ -74,6 +75,10 @@ class Tinebase_Setup_Update_17 extends Setup_Update_Abstract
self::CLASS_CONST => self::class,
self::FUNCTION_CONST => 'update012',
],
self::RELEASE017_UPDATE013 => [
self::CLASS_CONST => self::class,
self::FUNCTION_CONST => 'update013',
],
],
self::PRIO_TINEBASE_UPDATE => [
self::RELEASE017_UPDATE000 => [
Expand Down Expand Up @@ -331,4 +336,13 @@ public function update012()

$this->addApplicationUpdate(Tinebase_Config::APP_NAME, '17.12', self::RELEASE017_UPDATE012);
}

public function update013(): void
{
$this->updateSchema(Tinebase_Config::APP_NAME, [
Tinebase_Model_SchedulerTask::class,
]);

$this->addApplicationUpdate(Tinebase_Config::APP_NAME, '17.13', self::RELEASE017_UPDATE013);
}
}
2 changes: 1 addition & 1 deletion tine20/Tinebase/Setup/setup.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<application>
<name>Tinebase</name>
<version>17.11</version>
<version>17.13</version>
<order>0</order>
<minimumRequiredVersion>12.28</minimumRequiredVersion>
<tables>
Expand Down

0 comments on commit 169ad7f

Please sign in to comment.