Merge pull request #2684 from hinnerk/develop
Conver.js: Use current mysql client APIpull/2688/head
commit
d11c92cbf9
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue