@builderbot/database-mysql 1.1.3 → 1.1.4-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -9
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -42,15 +42,15 @@ class MysqlAdapter extends bot.MemoryDB {
|
|
|
42
42
|
};
|
|
43
43
|
this.createTable = () => new Promise((resolve) => {
|
|
44
44
|
const tableName = 'history';
|
|
45
|
-
const sql = `CREATE TABLE ${tableName}
|
|
46
|
-
(id INT AUTO_INCREMENT PRIMARY KEY,
|
|
47
|
-
ref varchar(255) DEFAULT NULL,
|
|
48
|
-
keyword varchar(255) NULL,
|
|
49
|
-
answer longtext NULL,
|
|
50
|
-
refSerialize varchar(255) NULL,
|
|
51
|
-
phone varchar(255) NOT NULL,
|
|
52
|
-
options longtext NULL,
|
|
53
|
-
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP)
|
|
45
|
+
const sql = `CREATE TABLE ${tableName}
|
|
46
|
+
(id INT AUTO_INCREMENT PRIMARY KEY,
|
|
47
|
+
ref varchar(255) DEFAULT NULL,
|
|
48
|
+
keyword varchar(255) NULL,
|
|
49
|
+
answer longtext NULL,
|
|
50
|
+
refSerialize varchar(255) NULL,
|
|
51
|
+
phone varchar(255) NOT NULL,
|
|
52
|
+
options longtext NULL,
|
|
53
|
+
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP)
|
|
54
54
|
CHARACTER SET utf8mb4 COLLATE utf8mb4_General_ci`;
|
|
55
55
|
this.db.query(sql, (err) => {
|
|
56
56
|
if (err)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@builderbot/database-mysql",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4-alpha.1",
|
|
4
4
|
"description": "Esto es el conector a Mysql",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "Leifer Mendez <leifer33@gmail.com>",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/codigoencasa/bot-whatsapp#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@builderbot/bot": "^1.1.
|
|
33
|
+
"@builderbot/bot": "^1.1.4-alpha.1",
|
|
34
34
|
"mysql2": "^2.3.3"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"tslib": "^2.6.2",
|
|
47
47
|
"tsm": "^2.3.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "f4db75ad98daca8c8127ac6f1cb5d9e789daceee"
|
|
50
50
|
}
|