Index: upgrade.php =================================================================== RCS file: /cvsroot/moodle/moodle/lib/db/upgrade.php,v retrieving revision 1.114 diff -u -r1.114 upgrade.php --- upgrade.php 14 Aug 2007 00:50:32 -0000 1.114 +++ upgrade.php 24 Aug 2007 02:54:08 -0000 @@ -1749,6 +1749,17 @@ } + if ($result && $oldversion < 2007082300) { + + /// Define field ordering to be added to tag_instance table + $table = new XMLDBTable('tag_instance'); + $field = new XMLDBField('ordering'); + + $field->setAttributes(XMLDB_TYPE_INTEGER, '10', XMLDB_UNSIGNED, XMLDB_NOTNULL, null, null, null, '0', 'itemid'); + + /// Launch add field rawname + $result = $result && add_field($table, $field); + } /* /// drop old gradebook tables