Skip to content

Commit

Permalink
tweak(Tinebase EvalDim) migration script added sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmhh committed Jan 11, 2024
1 parent 2c30cb2 commit 787637f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tine20/Tinebase/Setup/Update/17.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* @package Tinebase
* @subpackage Setup
* @license http://www.gnu.org/licenses/agpl.html AGPL3
* @copyright Copyright (c) 2023 Metaways Infosystems GmbH (http://www.metaways.de)
* @copyright Copyright (c) 2023-2024 Metaways Infosystems GmbH (http://www.metaways.de)
* @author Paul Mehrer <[email protected]>
*
* this is 2024.11 (ONLY!)
Expand Down Expand Up @@ -116,6 +116,7 @@ public function update004()
]))->getFirstRecord()) {
$dimension = new Tinebase_Model_EvaluationDimension([
Tinebase_Model_EvaluationDimension::FLD_NAME => Tinebase_Model_EvaluationDimension::COST_CENTER,
Tinebase_Model_EvaluationDimension::FLD_SORTING => 1000,
]);

if ($this->_backend->tableExists('cost_centers')) {
Expand All @@ -139,6 +140,7 @@ public function update004()
]))->getFirstRecord()) {
$dimension = new Tinebase_Model_EvaluationDimension([
Tinebase_Model_EvaluationDimension::FLD_NAME => Tinebase_Model_EvaluationDimension::COST_BEARER,
Tinebase_Model_EvaluationDimension::FLD_SORTING => 1010,
]);

if ($this->_backend->tableExists('cost_bearers')) {
Expand Down

0 comments on commit 787637f

Please sign in to comment.