From fbcd84c30475b0a1feb250f116f0b81c991c8e49 Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 1 Nov 2017 12:36:22 +0900 Subject: [PATCH] :v: --- tools/migration/reply_to-to-reply.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tools/migration/reply_to-to-reply.js diff --git a/tools/migration/reply_to-to-reply.js b/tools/migration/reply_to-to-reply.js new file mode 100644 index 000000000..ceb272ebc --- /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);