Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions components/ILIAS/Session/classes/Setup/UpdateStepsV12.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php

/**
* This file is part of ILIAS, a powerful learning management system
* published by ILIAS open source e-Learning e.V.
*
* ILIAS is licensed with the GPL-3.0,
* see https://www.gnu.org/licenses/gpl-3.0.en.html
* You should have received a copy of said license along with the
* source code, too.
*
* If this is not the case or you just want to try ILIAS, you'll find
* us at:
* https://www.ilias.de
* https://github.com/ILIAS-eLearning
*
*********************************************************************/

declare(strict_types=1);

namespace ILIAS\Session\Setup;

use ilDatabaseUpdateSteps;
use ilDBInterface;
use ilDBConstants;

class UpdateStepsV12 implements ilDatabaseUpdateSteps
{
private ilDBInterface $db;

public function prepare(ilDBInterface $db): void
{
$this->db = $db;
}

public function step_1(): void
{
$this->db->modifyTableColumn('event', 'details', [
'type' => ilDBConstants::T_CLOB,
'length' => 4000,
]);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use ILIAS\Setup;
use ILIAS\Setup\Config;
use ILIAS\Session\Setup\UpdateStepsV12;

/**
* @author Tim Schmitz <schmitz@leifos.de>
Expand All @@ -28,7 +29,12 @@ class ilSessionSetupAgent extends Setup\Agent\NullAgent
{
public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
{
return new ilDatabaseUpdateStepsExecutedObjective(new ilSessionDBUpdateSteps9());
return new Setup\ObjectiveCollection(
'Update Session component',
false,
new ilDatabaseUpdateStepsExecutedObjective(new ilSessionDBUpdateSteps9()),
new ilDatabaseUpdateStepsExecutedObjective(new UpdateStepsV12())
);
}

public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
Expand Down
Loading