summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/migration/reply_to-to-reply.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/migration/reply_to-to-reply.js b/tools/migration/reply_to-to-reply.js
new file mode 100644
index 0000000000..ceb272ebc9
--- /dev/null
+++ b/tools/migration/reply_to-to-reply.js
@@ -0,0 +1,5 @@
+db.posts.update({}, {
+ $rename: {
+ reply_to_id: 'reply_id'
+ }
+}, false, true);