summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorHinnerk Haardt <haardt@information-control.de>2015-05-30 15:14:40 +0200
committerHinnerk Haardt <haardt@information-control.de>2015-05-30 15:14:40 +0200
commit7ba5e97a606c893a6c95c7fce198442e3230487f (patch)
treed49cae8fc7a503d38eb1e885486c5d0d0008d575 /bin
parentb049f4bfc7096293222ffdb5947e540b44f0153e (diff)
downloadetherpad-lite-7ba5e97a606c893a6c95c7fce198442e3230487f.zip
Use current mysql client API
Diffstat (limited to 'bin')
-rw-r--r--bin/convert.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/convert.js b/bin/convert.js
index 202ef04e..88af1ad5 100644
--- a/bin/convert.js
+++ b/bin/convert.js
@@ -34,13 +34,13 @@ var sql = "SET CHARACTER SET UTF8;\n" +
fs.writeSync(sqlOutput, sql);
log("done");
-//set setings for ep db
-var etherpadDB= new mysql.Client();
-etherpadDB.host = settings.etherpadDB.host;
-etherpadDB.port = settings.etherpadDB.port;
-etherpadDB.database = settings.etherpadDB.database;
-etherpadDB.user = settings.etherpadDB.user;
-etherpadDB.password = settings.etherpadDB.password;
+var etherpadDB = mysql.createConnection({
+ host : settings.etherpadDB.host,
+ user : settings.etherpadDB.user,
+ password : settings.etherpadDB.password,
+ database : settings.etherpadDB.database,
+ port : settings.etherpadDB.port
+});
//get the timestamp once
var timestamp = new Date().getTime();