Skip to content

Commit

Permalink
tweak(Sales) added missing strcut update script
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmhh committed May 24, 2024
1 parent d2bbe80 commit 3acf4e3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions tine20/Sales/Setup/Update/17.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ class Sales_Setup_Update_17 extends Setup_Update_Abstract
const RELEASE017_UPDATE015 = __CLASS__ . '::update015';
const RELEASE017_UPDATE016 = __CLASS__ . '::update016';
const RELEASE017_UPDATE017 = __CLASS__ . '::update017';
const RELEASE017_UPDATE018 = __CLASS__ . '::update018';

static protected $_allUpdates = [
self::PRIO_TINEBASE_BEFORE_STRUCT => [
Expand Down Expand Up @@ -100,6 +101,10 @@ class Sales_Setup_Update_17 extends Setup_Update_Abstract
self::CLASS_CONST => self::class,
self::FUNCTION_CONST => 'update017',
],
self::RELEASE017_UPDATE018 => [
self::CLASS_CONST => self::class,
self::FUNCTION_CONST => 'update018',
],
],
self::PRIO_NORMAL_APP_UPDATE => [
self::RELEASE017_UPDATE000 => [
Expand Down Expand Up @@ -562,4 +567,16 @@ public function update017()

$this->addApplicationUpdate(Sales_Config::APP_NAME, '17.17', self::RELEASE017_UPDATE017);
}

public function update018()
{
Tinebase_TransactionManager::getInstance()->rollBack();

Setup_SchemaTool::updateSchema([
Sales_Model_Boilerplate::class,
Sales_Model_Document_Boilerplate::class,
]);

$this->addApplicationUpdate(Sales_Config::APP_NAME, '17.18', self::RELEASE017_UPDATE018);
}
}
2 changes: 1 addition & 1 deletion tine20/Sales/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>Sales</name>
<version>17.17</version>
<version>17.18</version>
<order>50</order>
<status>enabled</status>
<tables>
Expand Down

0 comments on commit 3acf4e3

Please sign in to comment.