Set notification target type after importing
This commit is contained in:
parent
f1e8b5c01d
commit
30f98aec3c
1 changed files with 6 additions and 0 deletions
|
|
@ -428,6 +428,12 @@ module DataConversion
|
|||
SET #{boolean_set("unread")};
|
||||
SQL
|
||||
log "Finished. Imported #{Mongo::Notification.count} notifications."
|
||||
{"new_request" => "Request",
|
||||
"request_accepted" => "Contact",
|
||||
"comment_on_post" => "Comment",
|
||||
"also_commented" => "Comment"}.each_pair do |key, value|
|
||||
Mongo::Notification.where(:action => key).update_all(:target_type => value)
|
||||
end
|
||||
end
|
||||
def import_raw_people
|
||||
log "Loading people file..."
|
||||
|
|
|
|||
Loading…
Reference in a new issue