|
|
@ -560,6 +560,25 @@ Upgrade.upgrade = function(callback) {
|
|
|
|
winston.info('[2014/2/7] Updating category recent replies -- skipped');
|
|
|
|
winston.info('[2014/2/7] Updating category recent replies -- skipped');
|
|
|
|
next();
|
|
|
|
next();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
function(next) {
|
|
|
|
|
|
|
|
thisSchemaDate = new Date(2014, 1, 9, 20, 50).getTime();
|
|
|
|
|
|
|
|
if (schemaDate < thisSchemaDate) {
|
|
|
|
|
|
|
|
updatesMade = true;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
db.delete('tid:lastFeedUpdate', function(err, uids) {
|
|
|
|
|
|
|
|
if(err) {
|
|
|
|
|
|
|
|
winston.err('Error upgrading '+ err.message);
|
|
|
|
|
|
|
|
process.exit();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
winston.info('[2014/2/9] Remove Topic LastFeedUpdate value, as feeds are now on-demand');
|
|
|
|
|
|
|
|
next();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
winston.info('[2014/2/9] Remove Topic LastFeedUpdate value, as feeds are now on-demand - skipped');
|
|
|
|
|
|
|
|
next();
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// Add new schema updates here
|
|
|
|
// Add new schema updates here
|
|
|
|
// IMPORTANT: REMEMBER TO UPDATE VALUE OF latestSchema IN LINE 17!!!
|
|
|
|
// IMPORTANT: REMEMBER TO UPDATE VALUE OF latestSchema IN LINE 17!!!
|
|
|
|