diff --git a/lib/data_conversion/import_to_mysql.rb b/lib/data_conversion/import_to_mysql.rb index 3eff0aaa3be7c382dfe57e59220d8eebbdec44f5..6e6725ec5534dd1efa65eef27389791708efcfdd 100644 --- a/lib/data_conversion/import_to_mysql.rb +++ b/lib/data_conversion/import_to_mysql.rb @@ -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..."