RemoveInvalidEmails: Fix quoting for postgres

Use addQuotes to quote the empty string instead of hard-coding "",
which not working in postgres

Change-Id: I52b79b5baf92cf50cf6edad227bcfa1abaa88aea
This commit is contained in:
Umherirrender 2022-07-09 23:20:59 +02:00
parent 61dfb2d76f
commit 3f63e3d8f0

View file

@ -36,7 +36,7 @@ class RemoveInvalidEmails extends Maintenance {
[ 'user_id', 'user_email' ],
[
'user_id > ' . $dbr->addQuotes( $lastId ),
'user_email != ""',
'user_email != ' . $dbr->addQuotes( '' ),
'user_email_authenticated IS NULL'
],
__METHOD__,