From: stronk7 <stronk7> Date: Sun, 4 Feb 2007 20:11:32 +0000 (+0000) Subject: Fixing one little-little bug about user->ajax being nullable. MDL-8421 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b7a0ea8781d9737f067445529e362135095045cc;p=moodle.git Fixing one little-little bug about user->ajax being nullable. MDL-8421 Merged from MOODLE_17_STABLE --- diff --git a/lib/db/mysql.php b/lib/db/mysql.php index 841b4db07a..4ceeabbc38 100644 --- a/lib/db/mysql.php +++ b/lib/db/mysql.php @@ -2130,7 +2130,7 @@ function main_upgrade($oldversion=0) { } if ($oldversion < 2006082800) { - table_column('user', '', 'ajax', 'integer', '1', 'unsigned', '1', '', 'htmleditor'); + table_column('user', '', 'ajax', 'integer', '1', 'unsigned', '1', 'not null', 'htmleditor'); } if ($oldversion < 2006082900) { diff --git a/lib/db/postgres7.php b/lib/db/postgres7.php index b2a4c1c3f7..41ffe24681 100644 --- a/lib/db/postgres7.php +++ b/lib/db/postgres7.php @@ -1728,7 +1728,7 @@ function main_upgrade($oldversion=0) { } if ($oldversion < 2006082800) { - table_column('user', '', 'ajax', 'integer', '1', 'unsigned', '1', '', 'htmleditor'); + table_column('user', '', 'ajax', 'integer', '1', 'unsigned', '1', 'not null', 'htmleditor'); } if ($oldversion < 2006082900) {