|
|
@ -21,6 +21,7 @@ foreach ($data as $row) { |
|
|
|
if (empty($question->exerciseList)) { |
|
|
|
if (empty($question->exerciseList)) { |
|
|
|
$question->delete(1); |
|
|
|
$question->delete(1); |
|
|
|
} |
|
|
|
} |
|
|
|
echo 'Deleting question '.$counter.'/'.$totalQuestions.' - #'.$row['iid'].PHP_EOL; |
|
|
|
echo 'Deleting question '.$counter.'/'.$totalQuestions.' - #'.$row['iid']. |
|
|
|
|
|
|
|
' - Course: '.$row['c_id'].' Title: '.$row['question'].PHP_EOL; |
|
|
|
$counter++; |
|
|
|
$counter++; |
|
|
|
} |
|
|
|
} |