From 6bcd2886e9bec06ed47a0d3ee3f1a98831178b98 Mon Sep 17 00:00:00 2001 From: Peter 'Pita' Martischka Date: Wed, 24 Aug 2011 13:31:02 +0100 Subject: [PATCH] Fixed some problems with the database convertion --- bin/convert.js | 56 ++++++++++++++++++++----------- bin/convertSettings.json.template | 2 +- 2 files changed, 38 insertions(+), 20 deletions(-) diff --git a/bin/convert.js b/bin/convert.js index 94e9877a3..d410f7a4a 100644 --- a/bin/convert.js +++ b/bin/convert.js @@ -52,7 +52,7 @@ async.series([ { log("get all padIds out of the database..."); - etherpadDB.query("SELECT ID FROM PAD_META LIMIT", [], function(err, _padIDs) + etherpadDB.query("SELECT ID FROM PAD_META", [], function(err, _padIDs) { padIDs = _padIDs; callback(err); @@ -153,11 +153,14 @@ function convertPad(padId, callback) { if(!err) { - //parse the pages - for(var i=0,length=results.length;i