]> git.mjollnir.org Git - moodle.git/commitdiff
re-enabling the rename_field() test
authorstronk7 <stronk7>
Mon, 2 Oct 2006 17:42:31 +0000 (17:42 +0000)
committerstronk7 <stronk7>
Mon, 2 Oct 2006 17:42:31 +0000 (17:42 +0000)
admin/xmldb/actions/test/test.class.php

index de52980a29cb41b505eaec998203f924971088ca..a847effc63e7f954fd9ccad2fa5a70be0a55a9ed 100644 (file)
@@ -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');