From 14759afb2d397ee625db5cba62b134aad2a58575 Mon Sep 17 00:00:00 2001 From: kaifei Hu Date: Wed, 14 Aug 2019 19:17:45 +0800 Subject: [PATCH] Update mongodb.js --- script/mongodb.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/mongodb.js b/script/mongodb.js index e683922..75d813f 100644 --- a/script/mongodb.js +++ b/script/mongodb.js @@ -1,7 +1,7 @@ // create table db.createCollection("sync_iris_asset_detail"); -db.sync_block.renameCollection("sync_iris_block"); -db.sync_task.renameCollection("sync_iris_task"); +db.createCollection("sync_iris_block"); +db.createCollection("sync_iris_task"); db.createCollection("sync_iris_tx"); db.createCollection("sync_cosmos_tx"); db.createCollection("sync_cosmos_block"); @@ -34,4 +34,4 @@ db.sync_iris_tx.createIndex({"type": 1}, {"background": true}); */ // db.sync_iris_asset_detail.deleteMany({}); // db.sync_block.deleteMany({}); -// db.sync_task.deleteMany({}); \ No newline at end of file +// db.sync_task.deleteMany({});