diff --git a/lib/db/install.xml b/lib/db/install.xml index 2add7cd3d69..44da1fabc28 100644 --- a/lib/db/install.xml +++ b/lib/db/install.xml @@ -727,7 +727,7 @@ - + diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index ad2de478b2c..ac2f945e009 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -4687,7 +4687,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); upgrade_main_savepoint(true, 2010070604); } - if ($oldversion < 2010070701) { + if ($oldversion < 2010070801) { /// Before changing the field, drop dependent indexes /// Define index shortname (not unique) to be dropped form course_request $table = new xmldb_table('user'); @@ -4696,8 +4696,8 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); if ($dbman->index_exists($table, $index)) { $dbman->drop_index($table, $index); } - /// Changing precision of field city on table user to (100) - $field = new xmldb_field('city', XMLDB_TYPE_CHAR, '100', null, XMLDB_NOTNULL, null, null, 'address'); + /// Changing precision of field city on table user to (120) + $field = new xmldb_field('city', XMLDB_TYPE_CHAR, '120', null, XMLDB_NOTNULL, null, null, 'address'); /// Launch change of precision for field city $dbman->change_field_precision($table, $field); @@ -4707,7 +4707,7 @@ WHERE gradeitemid IS NOT NULL AND grademax IS NOT NULL"); $dbman->add_index($table, $index); } /// Main savepoint reached - upgrade_main_savepoint(true, 2010070701); + upgrade_main_savepoint(true, 2010070801); } return true; diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 64124b0f0ad..0e74d26a4b4 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -3391,7 +3391,7 @@ function truncate_userinfo($info) { 'institution' => 40, 'department' => 30, 'address' => 70, - 'city' => 100, + 'city' => 120, 'country' => 2, 'url' => 255, ); diff --git a/login/signup_form.php b/login/signup_form.php index 7975933cb5a..04e24b035b1 100644 --- a/login/signup_form.php +++ b/login/signup_form.php @@ -54,7 +54,7 @@ class login_signup_form extends moodleform { $mform->setType('lastname', PARAM_TEXT); $mform->addRule('lastname', get_string('missinglastname'), 'required', null, 'server'); - $mform->addElement('text', 'city', get_string('city'), 'maxlength="100" size="20"'); + $mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="20"'); $mform->setType('city', PARAM_TEXT); $mform->addRule('city', get_string('missingcity'), 'required', null, 'server'); diff --git a/user/editlib.php b/user/editlib.php index 3ab62370b5f..b84fdce3bb9 100644 --- a/user/editlib.php +++ b/user/editlib.php @@ -187,7 +187,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null) { $mform->setDefault('screenreader', 0); $mform->addHelpButton('screenreader', 'screenreaderuse'); - $mform->addElement('text', 'city', get_string('city'), 'maxlength="100" size="21"'); + $mform->addElement('text', 'city', get_string('city'), 'maxlength="120" size="21"'); $mform->setType('city', PARAM_MULTILANG); $mform->addRule('city', $strrequired, 'required', null, 'client'); diff --git a/version.php b/version.php index 9f0ea2afa27..41fcadfac49 100644 --- a/version.php +++ b/version.php @@ -6,7 +6,7 @@ // This is compared against the values stored in the database to determine // whether upgrades should be performed (see lib/db/*.php) - $version = 2010070800; // YYYYMMDD = date of the last version bump + $version = 2010070801; // YYYYMMDD = date of the last version bump // XX = daily increments $release = '2.0 Preview 4+ (Build: 20100708)'; // Human-friendly version name