From b72e7b27f14028c87110ed125939667838ab180b Mon Sep 17 00:00:00 2001 From: Tben Date: Sat, 12 Aug 2023 15:21:53 +0100 Subject: [PATCH] Upgrades --- engine/engine/createDbFromSchema.js | 6 ------ package.json | 5 +---- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/engine/engine/createDbFromSchema.js b/engine/engine/createDbFromSchema.js index f205568..fd41144 100644 --- a/engine/engine/createDbFromSchema.js +++ b/engine/engine/createDbFromSchema.js @@ -36,10 +36,8 @@ async function createDbFromSchema(dbSchema) { * * @description Grab Schema */ - console.log("Starting createDbFromSchema ..."); if (!dbSchema || !Array.isArray(dbSchema) || !dbSchema[0]) { - console.log("Invalid DB schema data"); return; } @@ -48,8 +46,6 @@ async function createDbFromSchema(dbSchema) { const database = dbSchema[i]; const { dbFullName, tables } = database; - console.log("Now constructing database =>", database?.dbFullName); - //////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////////// @@ -57,8 +53,6 @@ async function createDbFromSchema(dbSchema) { /** @type {{ dbFullName: string }[] | null} */ const dbCheck = await noDatabaseDbHandler({ query: `SELECT SCHEMA_NAME AS dbFullName FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME = '${dbFullName}'` }); - console.log("DB CHeck =>", dbCheck); - if (dbCheck && dbCheck[0]?.dbFullName) { // Database Exists } else { diff --git a/package.json b/package.json index a5859f7..b3c77b7 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,11 @@ { "name": "datasquirel", - "version": "1.5.2", + "version": "1.5.3", "description": "Cloud-based SQL data management tool", "main": "index.js", "bin": { "dsql-watch": "./engine/dsql.js" }, - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" - }, "repository": { "type": "git", "url": "git+https://github.com/BenjaminToby/dsql.git"