mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: set digest_attempted_at during migrations (#11369)
This commit is contained in:
parent
b913afe5bb
commit
a85d5edbf1
2 changed files with 8 additions and 4 deletions
|
@ -737,6 +737,10 @@ class ImportScripts::Base
|
|||
WHERE u1.user_id = user_stats.user_id
|
||||
AND user_stats.topic_count <> sub.topic_count
|
||||
SQL
|
||||
|
||||
puts "", "Updating user digest_attempted_at..."
|
||||
|
||||
DB.exec("UPDATE user_stats SET digest_attempted_at = now() WHERE digest_attempted_at IS NULL")
|
||||
end
|
||||
|
||||
# scripts that are able to import last_seen_at from the source data should override this method
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue