From dace56596f32b8de1e2447fe3344fff31105a5e0 Mon Sep 17 00:00:00 2001 From: alexmorenograu <61759297+alexmorenograu@users.noreply.github.com> Date: Fri, 12 Mar 2021 11:10:35 +0100 Subject: [PATCH] filldb --- FillDB.js | 0 db.sql | 2 -- mysql.js | 1 + 3 files changed, 1 insertion(+), 2 deletions(-) create mode 100644 FillDB.js diff --git a/FillDB.js b/FillDB.js new file mode 100644 index 0000000..e69de29 diff --git a/db.sql b/db.sql index 16bd739..39af70f 100644 --- a/db.sql +++ b/db.sql @@ -1,4 +1,3 @@ -/* CREATE TABLE vn.smartTag ( code varchar(100) NOT NULL, shelvingFk varchar(10) NULL, @@ -8,5 +7,4 @@ CREATE TABLE vn.smartTag ( ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; -*/ diff --git a/mysql.js b/mysql.js index 0ed135a..2dbec9a 100644 --- a/mysql.js +++ b/mysql.js @@ -9,6 +9,7 @@ var con = mysql.createConnection({ port: 3307, }); +exports.con con.connect(function(err) { if (err) { console.error('Error connecting: ' + err.stack);