19 declare(strict_types=1);
28 protected \ilDBInterface
$db;
38 if ($this->db->supportsTransactions()) {
39 $this->db->beginTransaction();
41 $updateStep($this->db);
43 if ($this->db->supportsTransactions()) {
47 if ($this->db->supportsTransactions()) {
48 $this->db->rollback();
62 $etalTableName =
'etal_data';
66 'object_id' => [
'type' =>
'integer',
'length' => 8,
'notnull' =>
true],
67 'series_id' => [
'type' =>
'text',
'length' => 36,
'notnull' =>
true,
'fixed' =>
true],
68 'start_date' => [
'type' =>
'integer',
'length' => 8,
'notnull' =>
true],
69 'end_date' => [
'type' =>
'integer',
'length' => 8,
'notnull' =>
true],
70 'all_day' => [
'type' =>
'integer',
'length' => 1,
'notnull' =>
true],
71 'employee' => [
'type' =>
'integer',
'length' => 8,
'notnull' =>
true],
72 'location' => [
'type' =>
'text',
'length' => 200,
'notnull' =>
false,
'fixed' =>
false],
73 'completed' => [
'type' =>
'integer',
'length' => 1,
'notnull' =>
true]
77 $db->
addIndex($etalTableName, [
'series_id'],
'ser');
78 $db->
addIndex($etalTableName, [
'employee'],
'emp');
86 $etalTableName =
'etal_data';
111 $table_name =
'etal_serie';
115 'id' => [
'type' =>
'integer',
'length' => 8,
'notnull' =>
true],
116 'editing_locked' => [
'type' =>
'integer',
'length' => 1,
'notnull' =>
true],
127 $table_name =
'etal_data';
128 $column_name =
'template_id';
tableExists(string $table_name)
addIndex(string $table_name, array $fields, string $index_name='', bool $fulltext=false)
addPrimaryKey(string $table_name, array $primary_keys)
useTransaction(callable $updateStep)
tableColumnExists(string $table_name, string $column_name)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addTableColumn(string $table_name, string $column_name, array $attributes)
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
createTable(string $table_name, array $fields, bool $drop_table=false, bool $ignore_erros=false)