19declare(strict_types=1);
29 protected \ilDBInterface
$db;
33 return "Grants each select option a permanent ID.";
44 new \ilIniFilesLoadedObjective(),
45 new \ilDatabaseInitializedObjective(),
46 new \ilDatabaseUpdatedObjective(),
57 $res = $this->db->manipulate(
58 'UPDATE adv_mdf_enum SET position = idx WHERE position IS NULL LIMIT 1'
64 $res = $this->db->query(
65 'SELECT COUNT(*) AS count FROM adv_mdf_enum WHERE position IS NULL'
68 $row = $this->db->fetchAssoc(
$res);
69 return (
int) $row[
'count'];
An environment holds resources to be used in the setup process.
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
A migration is a potentially long lasting operation that can be broken into discrete steps.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...