mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
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:
parent
7a4832ecb9
commit
ffda0ca360
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user