From 9d21f87345e20e07742ced8e9de09742276c4562 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Sun, 29 Nov 2015 12:19:59 -0800 Subject: [PATCH 1/3] Add migration script to backfill user concept stats --- .../2015-11-28-add-concept-stats-to-users.js | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 scripts/mongodb/migrations/2015-11-28-add-concept-stats-to-users.js diff --git a/scripts/mongodb/migrations/2015-11-28-add-concept-stats-to-users.js b/scripts/mongodb/migrations/2015-11-28-add-concept-stats-to-users.js new file mode 100644 index 000000000..bbfa4348c --- /dev/null +++ b/scripts/mongodb/migrations/2015-11-28-add-concept-stats-to-users.js @@ -0,0 +1,53 @@ +// Adds up all concept statistics for all non-anoymous users. +// Usage: +// mongo
:/