troywilliams/moodle-mod_dialogue — pull request #20 by tlock (2012-10-08 23:24:10+00:00)
Title: Found an issue with Moodle 1.9 upgrade code

Hi Troy,

Found when I was upgrade a Moodle 1.9 site with extensive use of Dialogue that it would fail on updating the database with plugin files in the dialogue.

Notice: Undefined variable: content in /var/htdocs/moodle/mod/dialogue/db/upgrade.php on line 84
!!! Error writing to database !!!
!! ERROR: null value in column "text" violates not-null constraint
UPDATE mdl_dialogue_entries SET text = NULL WHERE id = $1
[array (
0 => '7382',
)] !!