From efd261ce5bec882b491071274cbde6dc971cad70 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Sat, 11 Aug 2007 00:55:21 +0000 Subject: [PATCH] XMLDB_TYPE_CHAR + XMLDB_NOTNULL must not have any default applied. --- lib/db/upgrade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.39.5