Added schema upgrade to delete the tid:lastFeedUpdate key

v1.18.x
Micheil Smith 11 years ago
parent c619301735
commit cfaa0b3754

@ -560,6 +560,25 @@ Upgrade.upgrade = function(callback) {
winston.info('[2014/2/7] Updating category recent replies -- skipped');
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
// IMPORTANT: REMEMBER TO UPDATE VALUE OF latestSchema IN LINE 17!!!

Loading…
Cancel
Save