19 declare(strict_types=1);
46 if (! $this->db->tableExists(
'todo_items')) {
47 $this->db->createTable(
'todo_items', [
48 'todo_id' => [
'type' =>
'integer',
'length' =>
'4',
'notnull' =>
true],
49 'user_id' => [
'type' =>
'integer',
'length' =>
'4',
'notnull' =>
true],
50 'title' => [
'type' =>
'text',
'length' =>
'250',
'notnull' =>
true],
51 'description' => [
'type' =>
'clob',
'notnull' =>
false],
52 'deadline' => [
'type' =>
'date',
'notnull' =>
false],
55 $this->db->createSequence(
'todo_items');
56 $this->db->addPrimaryKey(
'todo_items', [
'todo_id']);
57 $this->db->addIndex(
'todo_items', [
'user_id'],
'i1');
prepare(ilDBInterface $db)
Prepare the update ilDBInterface should be the only dependency of the update steps.
step_1()
Step 1: Creation of the table Update steps must be consecutively numbered ILIAS setup remembers the a...