parent
496b3cbde9
commit
e2a5887778
|
@ -1,4 +1,4 @@
|
||||||
# 3.0.10 / 2019-09-23
|
# 3.0.11 / 2019-09-23
|
||||||
* 优化数据库/表的删除判断;
|
* 优化数据库/表的删除判断;
|
||||||
* 优化创建数据库/表时的默认配置顶;
|
* 优化创建数据库/表时的默认配置顶;
|
||||||
* 优化字段的默认值0的判断
|
* 优化字段的默认值0的判断
|
||||||
|
|
|
@ -79,7 +79,7 @@ class Api {
|
||||||
let defer = Promise.defer()
|
let defer = Promise.defer()
|
||||||
|
|
||||||
this.connect().then(conn => {
|
this.connect().then(conn => {
|
||||||
conn.query(`DROP DATABASE IF EXISTS \`${db || this.db}\``, err => {
|
conn.query(`DROP DATABASE IF EXISTS ${db || this.db}`, err => {
|
||||||
conn.release()
|
conn.release()
|
||||||
if (err) {
|
if (err) {
|
||||||
return defer.reject(new SqlErr(`Drop database ${err}`))
|
return defer.reject(new SqlErr(`Drop database ${err}`))
|
||||||
|
|
|
@ -302,7 +302,7 @@ class Method {
|
||||||
}
|
}
|
||||||
|
|
||||||
drop() {
|
drop() {
|
||||||
let sql = `DROP TABLE IF EXISTS \`${this.cache.table}\` `
|
let sql = `DROP TABLE IF EXISTS ${this.cache.table} `
|
||||||
|
|
||||||
return this.connect().then(conn => {
|
return this.connect().then(conn => {
|
||||||
const defer = Promise.defer()
|
const defer = Promise.defer()
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "mysqli",
|
"name": "mysqli",
|
||||||
"version": "3.0.10",
|
"version": "3.0.11",
|
||||||
"description": "MySQL tool",
|
"description": "MySQL tool",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue