mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: mbox importer should ignore emails without date
This commit is contained in:
parent
7d375690c1
commit
9b651adadb
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ module ImportScripts::Mbox
|
|||
INSERT INTO user (email, name, date_of_first_message)
|
||||
SELECT from_email, MIN(from_name) AS from_name, MIN(email_date)
|
||||
FROM email
|
||||
WHERE from_email IS NOT NULL
|
||||
WHERE from_email IS NOT NULL AND email_date IS NOT NULL
|
||||
GROUP BY from_email
|
||||
ORDER BY from_email
|
||||
SQL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue