DEV: set digest_attempted_at during migrations (#11369)

This commit is contained in:
Régis Hanol
2020-12-14 00:58:14 +01:00
committed by GitHub
parent b913afe5bb
commit a85d5edbf1
2 changed files with 8 additions and 4 deletions

View File

@@ -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