From eb9e5472ab374f9e81f0b3a71a16dc13608ce359 Mon Sep 17 00:00:00 2001 From: ctjong Date: Sat, 17 Mar 2018 14:24:06 -0700 Subject: [PATCH] small fix for mysql setup script --- orion.js | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/orion.js b/orion.js index ff7a6f7..ee97a2b 100644 --- a/orion.js +++ b/orion.js @@ -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; diff --git a/package.json b/package.json index b6a4d6a..657f3ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "orion-api", - "version": "1.2.8", + "version": "1.2.9", "description": "REST API server application", "main": "index.js", "repository": {