19 declare(strict_types=1);
32 if ($this->db->tableColumnExists(
'qpl_questionpool',
'nav_taxonomy')) {
33 $this->db->dropTableColumn(
'qpl_questionpool',
'nav_taxonomy');
39 if ($this->db->tableColumnExists(
'qpl_questions',
'working_time')) {
40 $this->db->dropTableColumn(
'qpl_questions',
'working_time');
46 if ($this->db->tableExists(
'qpl_sol_sug')) {
47 $this->db->manipulateF(
"DELETE FROM qpl_sol_sug WHERE type = %s", [
'text'], [
'text']);
55 INNER JOIN qpl_questionpool ON object_data.obj_id = qpl_questionpool.obj_fi 56 SET object_data.offline = IF(qpl_questionpool.isonline = 1, 0, 1) 57 WHERE object_data.type = %s 60 $this->db->manipulateF(
66 if ($this->db->tableColumnExists(
'qpl_questionpool',
'isonline')) {
67 $this->db->dropTableColumn(
'qpl_questionpool',
'isonline');
73 $this->db->modifyTableColumn(
76 [
'type' =>
'text',
'length' => 512]
82 $this->db->modifyTableColumn(
85 [
'type' =>
'text',
'length' => 124]
91 $table =
'tst_rnd_quest_set_qpls';
92 $table_column =
'pool_title';
93 if ($this->db->tableColumnExists($table, $table_column)) {
94 $this->db->modifyTableColumn(
prepare(ilDBInterface $db)