]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing one little-little bug about user->ajax being nullable. MDL-8421
authorstronk7 <stronk7>
Sun, 4 Feb 2007 20:11:32 +0000 (20:11 +0000)
committerstronk7 <stronk7>
Sun, 4 Feb 2007 20:11:32 +0000 (20:11 +0000)
Merged from MOODLE_17_STABLE

lib/db/mysql.php
lib/db/postgres7.php

index 841b4db07a7254c3f343712c3700e82fa1ed1c6f..4ceeabbc3852ea1d2906ef9692f11339fa32162b 100644 (file)
@@ -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) {
index b2a4c1c3f71828a7f81fef9d556e07a64c8bcbfc..41ffe2468152d480dcea095d2dfd0a8a48fc2447 100644 (file)
@@ -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) {