◆ abortIfNotPrepared()
ilFileServicesDatabaseObjective::abortIfNotPrepared |
( |
| ) |
|
|
protected |
- Exceptions
-
LogicException | if the database update steps were not yet prepared. |
Definition at line 110 of file class.ilFileServicesDatabaseObjective.php.
References null.
Referenced by step_1().
112 if (
null === $this->database) {
113 throw new LogicException(self::class .
"::prepare() must be called before db-update-steps execution.");
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ prepare()
◆ step_1()
ilFileServicesDatabaseObjective::step_1 |
( |
| ) |
|
adds a new table to store data of file upload policies
Definition at line 36 of file class.ilFileServicesDatabaseObjective.php.
References abortIfNotPrepared().
40 if ($this->database->tableExists(
"il_upload_policy")) {
44 $this->database->createTable(
"il_upload_policy", [
55 "upload_limit_in_mb" => [
70 "scope_definition" => [
94 'type' =>
'timestamp',
98 'type' =>
'timestamp',
103 $this->database->createSequence(
"il_upload_policy");
◆ $database
The documentation for this class was generated from the following file: