19 declare(strict_types=1);
25 protected \ilDBInterface
$db;
34 if (!$this->db->indexExistsByFields(
'booking_reservation', [
'context_obj_id'])) {
35 $this->db->addIndex(
'booking_reservation', [
'context_obj_id'],
'i5');
41 if (!$this->db->indexExistsByFields(
'booking_schedule', [
'pool_id'])) {
42 $this->db->addIndex(
'booking_schedule', [
'pool_id'],
'i1');
48 if (!$this->db->indexExistsByFields(
'booking_object', [
'schedule_id'])) {
49 $this->db->addIndex(
'booking_object', [
'schedule_id'],
'i2');
56 if (!$db->tableExists(
"book_sel_object")) {
71 $db->createTable(
"book_sel_object", $fields);
72 $db->addPrimaryKey(
"book_sel_object", [
"user_id",
"object_id"]);
79 if (!$db->tableColumnExists(
"book_sel_object",
"pool_id")) {
92 if (!$db->tableColumnExists(
"booking_settings",
"messages")) {
105 if (!$db->tableColumnExists(
"booking_reservation",
"message")) {
117 if (!$this->db->tableColumnExists(
'booking_object',
'obj_info_rid')) {
118 $this->db->addTableColumn(
133 if (!$this->db->tableColumnExists(
'booking_object',
'book_info_rid')) {
134 $this->db->addTableColumn(
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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.