]> git.mjollnir.org Git - moodle.git/commitdiff
Minor change to test to exclusively test the change of nullability
authorstronk7 <stronk7>
Sun, 24 Sep 2006 15:28:32 +0000 (15:28 +0000)
committerstronk7 <stronk7>
Sun, 24 Sep 2006 15:28:32 +0000 (15:28 +0000)
admin/xmldb/actions/test/test.class.php

index 3ba629cb4f05e8f4bd8866d60a5dc993701f9ec9..59ee2f3b3289ac17e290327da76e5782c2dd021c 100644 (file)
@@ -281,7 +281,7 @@ class test extends XMLDBAction {
         /// Get SQL code and execute it
             $test = new stdClass;
             $field = new XMLDBField('name');
-            $field->setAttributes(XMLDB_TYPE_CHAR, '10', null, XMLDB_NOTNULL, null, null, null, 'Moodle');
+            $field->setAttributes(XMLDB_TYPE_CHAR, '30', null, XMLDB_NOTNULL, null, null, null, 'Moodle');
             
             $test->sql = $table->getAlterFieldSQL($CFG->dbtype, $CFG->prefix, $field, true);
             $test->status = change_field_notnull($table, $field, false, false);
@@ -296,7 +296,7 @@ class test extends XMLDBAction {
         /// Get SQL code and execute it
             $test = new stdClass;
             $field = new XMLDBField('name');
-            $field->setAttributes(XMLDB_TYPE_CHAR, '10', null, null, null, null, null, 'Moodle');
+            $field->setAttributes(XMLDB_TYPE_CHAR, '30', null, null, null, null, null, 'Moodle');
             
             $test->sql = $table->getAlterFieldSQL($CFG->dbtype, $CFG->prefix, $field, true);
             $test->status = change_field_notnull($table, $field, false, false);