From 509de4ddaf2157a16015ba31e6011406782882c0 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 2 Oct 2019 18:29:43 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20MySql=20=E4=B8=8E=20MongoDB=20?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20UNDONE=20=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #Comment 没有环境暂时未写相关代码 --- src/admin/Bootstrap.DataAccess.MongoDB/AutoDB.cs | 2 +- src/admin/Bootstrap.DataAccess/AutoDB.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/admin/Bootstrap.DataAccess.MongoDB/AutoDB.cs b/src/admin/Bootstrap.DataAccess.MongoDB/AutoDB.cs index 8a7f79f8..e633392b 100644 --- a/src/admin/Bootstrap.DataAccess.MongoDB/AutoDB.cs +++ b/src/admin/Bootstrap.DataAccess.MongoDB/AutoDB.cs @@ -11,7 +11,7 @@ /// public override void CheckDB(string folder) { - // 没有环境暂时未写代码 + // UNDONE: 没有环境暂时未写代码 } } } diff --git a/src/admin/Bootstrap.DataAccess/AutoDB.cs b/src/admin/Bootstrap.DataAccess/AutoDB.cs index 2de345bb..a1992a60 100644 --- a/src/admin/Bootstrap.DataAccess/AutoDB.cs +++ b/src/admin/Bootstrap.DataAccess/AutoDB.cs @@ -35,6 +35,7 @@ namespace Bootstrap.DataAccess break; case "MySqlDatabaseProvider": case "MariaDbDatabaseProvider": + // UNDONE: 本地没有环境此处代码未测试 if (db.ExecuteScalar("select count(*) from information_schema.tables where table_name ='Users' and Table_Schema = 'BootstrapAdmin'") == 0) GenerateMySql(); break; } @@ -87,7 +88,7 @@ namespace Bootstrap.DataAccess private void GenerateMySql() { - // 没有环境暂时未写代码 + // UNDONE: 没有环境暂时未写代码 } } }