MDL-46126 upgrade: fix bogus nulls in user.password before changing precission

Note: there is no need to deal with Oracle empty strings here
because only MySQL running in non-strict mode is affected.
This commit is contained in:
Petr Skoda 2014-07-04 16:28:59 +12:00
parent 7a4832ecb9
commit ffda0ca360

View File

@ -1583,6 +1583,8 @@ function xmldb_main_upgrade($oldversion) {
}
if ($oldversion < 2013021100.01) {
// Make sure there are no bogus nulls in old MySQL tables.
$DB->set_field_select('user', 'password', '', "password IS NULL");
// Changing precision of field password on table user to (255).
$table = new xmldb_table('user');