3declare(strict_types=1);
34 protected \ilDBInterface
$db;
44 if ($this->db->supportsTransactions()) {
45 $this->db->beginTransaction();
47 $updateStep($this->db);
49 if ($this->db->supportsTransactions()) {
52 }
catch (\Exception $exception) {
53 if ($this->db->supportsTransactions()) {
54 $this->db->rollback();
68 $etalTableName =
'etal_data';
71 $db->createTable($etalTableName, [
72 'object_id' => [
'type' =>
'integer',
'length' => 8,
'notnull' => true],
73 'series_id' => [
'type' =>
'text',
'length' => 36,
'notnull' => true,
'fixed' => true],
74 'start_date' => [
'type' =>
'integer',
'length' => 8,
'notnull' => true],
75 'end_date' => [
'type' =>
'integer',
'length' => 8,
'notnull' => true],
76 'all_day' => [
'type' =>
'integer',
'length' => 1,
'notnull' => true],
77 'employee' => [
'type' =>
'integer',
'length' => 8,
'notnull' => true],
78 'location' => [
'type' =>
'text',
'length' => 200,
'notnull' => false,
'fixed' => false],
79 'completed' => [
'type' =>
'integer',
'length' => 1,
'notnull' => true]
82 $db->addPrimaryKey($etalTableName, [
'object_id']);
83 $db->addIndex($etalTableName, [
'series_id'],
'ser');
84 $db->addIndex($etalTableName, [
'employee'],
'emp');
92 $etalTableName =
'etal_data';
117 $table_name =
'etal_serie';
120 $db->createTable($table_name, [
121 'id' => [
'type' =>
'integer',
'length' => 8,
'notnull' => true],
122 'editing_locked' => [
'type' =>
'integer',
'length' => 1,
'notnull' => true],
125 $db->addPrimaryKey($table_name, [
'id']);
133 $table_name =
'etal_data';
134 $column_name =
'template_id';
prepare(\ilDBInterface $db)
Prepare the execution of the steps.
useTransaction(callable $updateStep)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
tableExists(string $table_name)
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...