mirror of
https://gitlab.com/jusax23/wam.git
synced 2024-11-22 14:46:35 +01:00
default 0 error
This commit is contained in:
parent
4c26995d86
commit
9ec1156014
1 changed files with 1 additions and 1 deletions
2
db.js
2
db.js
|
@ -54,7 +54,7 @@ const db = function ({host, port, user, password, database}) {
|
|||
sqlcode1+=` AUTO_INCREMENT PRIMARY KEY`;
|
||||
sqlcode2+=` AUTO_INCREMENT PRIMARY KEY`;
|
||||
sqlcode3+=` AUTO_INCREMENT`;
|
||||
}else if(!!attribute.default){
|
||||
}else if(attribute.default != null){
|
||||
sqlcode1+=` DEFAULT ${con.escape(attribute.default)}`;
|
||||
sqlcode2+=` DEFAULT ${con.escape(attribute.default)}`;
|
||||
sqlcode3+=` DEFAULT ${con.escape(attribute.default)}`;
|
||||
|
|
Loading…
Reference in a new issue