feat: 增加 MongoDB 自动建库相关文件

This commit is contained in:
Argo Zhang 2019-10-02 12:54:15 +08:00
parent c45d0b0198
commit 36f9e1cd70
No known key found for this signature in database
GPG Key ID: 152E398953DDF19F
3 changed files with 7 additions and 1 deletions

View File

@ -33,6 +33,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "MongoDB", "MongoDB", "{A06A
db\MongoDB\Dicts.js = db\MongoDB\Dicts.js
db\MongoDB\Groups.js = db\MongoDB\Groups.js
db\MongoDB\init.js = db\MongoDB\init.js
db\MongoDB\install.cmd = db\MongoDB\install.cmd
db\MongoDB\install.sh = db\MongoDB\install.sh
db\MongoDB\Navigations.js = db\MongoDB\Navigations.js
db\MongoDB\Roles.js = db\MongoDB\Roles.js

5
db/MongoDB/install.cmd Normal file
View File

@ -0,0 +1,5 @@
# init mongodb data
@echo off
mongo ./init.js
mongo BootstrapAdmin --eval "printjson(db.getCollectionNames())"

View File

@ -11,7 +11,7 @@
/// </summary>
public override void CheckDB(string folder)
{
// 没有环境暂时未写代码
}
}
}