diff --git a/src/upgrade.js b/src/upgrade.js index 08b5594ab1..51f75232d8 100644 --- a/src/upgrade.js +++ b/src/upgrade.js @@ -15,7 +15,7 @@ var db = require('./database'), Upgrade = {}, - minSchemaDate = Date.UTC(2014, 0, 4), // This value gets updated every new MINOR version + minSchemaDate = Date.UTC(2014, 1, 14, 21, 50), // This value gets updated every new MINOR version schemaDate, thisSchemaDate, // IMPORTANT: REMEMBER TO UPDATE VALUE OF latestSchema @@ -63,644 +63,6 @@ Upgrade.upgrade = function(callback) { } }); }, - function(next) { - thisSchemaDate = Date.UTC(2014, 0, 5); - if (schemaDate < thisSchemaDate) { - updatesMade = true; - - db.getListRange('categories:cid', 0, -1, function(err, cids) { - if(err) { - return next(err); - } - - var timestamp = Date.now(); - - function upgradeCategory(cid, next) { - db.getSetMembers('cid:' + cid + ':active_users', function(err, uids) { - if(err) { - return next(err); - } - - db.delete('cid:' + cid + ':active_users', function(err) { - if(err) { - return next(err); - } - - for(var i=0; i