From: stronk7 Date: Sat, 11 Aug 2007 00:55:21 +0000 (+0000) Subject: XMLDB_TYPE_CHAR + XMLDB_NOTNULL must not have any default applied. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=efd261ce5bec882b491071274cbde6dc971cad70;p=moodle.git XMLDB_TYPE_CHAR + XMLDB_NOTNULL must not have any default applied. --- diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index f31b2197a1..b5199f15b9 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -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');