From 1c73b08e95064e7fd2c1c4b1d584ad9c09d34331 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 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);