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": {