mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Minor change to test to exclusively test the change of nullability
This commit is contained in:
parent
b343df8690
commit
c02a561f97
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue