From b7a0ea8781d9737f067445529e362135095045cc Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sun, 4 Feb 2007 20:11:32 +0000 Subject: [PATCH] Fixing one little-little bug about user->ajax being nullable. MDL-8421 Merged from MOODLE_17_STABLE --- lib/db/mysql.php | 2 +- lib/db/postgres7.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5