From: stronk7 Date: Mon, 2 Oct 2006 17:42:31 +0000 (+0000) Subject: re-enabling the rename_field() test X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f8ca40505221a1152342a7bec7df4c1ced36a117;p=moodle.git re-enabling the rename_field() test --- diff --git a/admin/xmldb/actions/test/test.class.php b/admin/xmldb/actions/test/test.class.php index de52980a29..a847effc63 100644 --- a/admin/xmldb/actions/test/test.class.php +++ b/admin/xmldb/actions/test/test.class.php @@ -655,7 +655,6 @@ class test extends XMLDBAction { $test = new stdClass; $field = new XMLDBField('type'); $field->setAttributes(XMLDB_TYPE_CHAR, '20', null, XMLDB_NOTNULL, null, XMLDB_ENUM, array('single', 'news', 'general', 'social', 'eachuser', 'teacher', 'qanda'), 'general', 'course'); - $test->sql = $table->getModifyEnumSQL($CFG->dbtype, $CFG->prefix, $field, true); $test->status = change_field_enum($table, $field, false, false); if (!$test->status) { @@ -695,7 +694,7 @@ class test extends XMLDBAction { } /// 39th test. Renaming one field - if ($test->status && 1==2) { + if ($test->status) { /// Get SQL code and execute it $test = new stdClass; $field = new XMLDBField('type');