From 1af8c64323cb54d4e78c77d7186c5f10f6b3e00d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Thu, 19 Sep 2019 15:49:22 +0800 Subject: [PATCH] fixed --- History.md | 2 +- lib/utils.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/History.md b/History.md index 7261408..8de129d 100644 --- a/History.md +++ b/History.md @@ -1,4 +1,4 @@ -# 3.0.7 / 2019-09-19 +# 3.0.8 / 2019-09-19 * 修复tableCreate在没有索引时建表失败的bug * 更新文档 diff --git a/lib/utils.js b/lib/utils.js index c30463b..d818547 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -279,7 +279,7 @@ const parser = { } sql += primary if (indexes.length) { - sql += indexes.join(', \n') + ')' + sql += ',\n' + indexes.join(', \n') + ')' } else { sql += '\n)' } diff --git a/package.json b/package.json index 79bda6a..50a1a13 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mysqli", - "version": "3.0.7", + "version": "3.0.8", "description": "MySQL tool", "main": "index.js", "dependencies": {