mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:55:43 +00:00
FIX: mbox importer should ignore emails without date
This commit is contained in:
parent
7d375690c1
commit
9b651adadb
@ -131,7 +131,7 @@ module ImportScripts::Mbox
|
|||||||
INSERT INTO user (email, name, date_of_first_message)
|
INSERT INTO user (email, name, date_of_first_message)
|
||||||
SELECT from_email, MIN(from_name) AS from_name, MIN(email_date)
|
SELECT from_email, MIN(from_name) AS from_name, MIN(email_date)
|
||||||
FROM email
|
FROM email
|
||||||
WHERE from_email IS NOT NULL
|
WHERE from_email IS NOT NULL AND email_date IS NOT NULL
|
||||||
GROUP BY from_email
|
GROUP BY from_email
|
||||||
ORDER BY from_email
|
ORDER BY from_email
|
||||||
SQL
|
SQL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user