Skip to content

Commit

Permalink
small fix for mysql setup script
Browse files Browse the repository at this point in the history
  • Loading branch information
ctjong committed Mar 17, 2018
1 parent e206e60 commit eb9e547
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion orion.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@
}
else if (fieldType === "boolean")
{
fieldsStr += "BIT DEFAULT 0";
if(engine === "mssql")
fieldsStr += "BIT DEFAULT 0";
else
fieldsStr += "TINYINT(1) DEFAULT 0";
}
}
createTableStr += fieldsStr;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "orion-api",
"version": "1.2.8",
"version": "1.2.9",
"description": "REST API server application",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit eb9e547

Please sign in to comment.