]> git.mjollnir.org Git - moodle.git/commitdiff
XMLDB_TYPE_CHAR + XMLDB_NOTNULL must not have any default applied.
authorstronk7 <stronk7>
Sat, 11 Aug 2007 00:55:21 +0000 (00:55 +0000)
committerstronk7 <stronk7>
Sat, 11 Aug 2007 00:55:21 +0000 (00:55 +0000)
lib/db/upgrade.php

index f31b2197a14fe987369a1fbc38edc370a0541a72..b5199f15b98b71b95f4d363212ad2ca0d0710db2 100644 (file)
@@ -1645,7 +1645,7 @@ function xmldb_main_upgrade($oldversion=0) {
     /// Add context.path & index
         $table = new XMLDBTable('context');
         $field = new XMLDBField('path');
-        $field->setAttributes(XMLDB_TYPE_CHAR, '255', null, XMLDB_NOTNULL, null, null, null, '', 'instanceid');
+        $field->setAttributes(XMLDB_TYPE_CHAR, '255', null, XMLDB_NOTNULL, null, null, null, null, 'instanceid');
         $result = $result && add_field($table, $field);
         $table = new XMLDBTable('context');
         $index = new XMLDBIndex('path');