adding one last migration to UTC datetime for 0.3.2

This commit is contained in:
Julian Lam
2014-04-02 20:55:02 -04:00
parent 0c093c2aaa
commit 5bcc87a807

View File

@@ -673,6 +673,20 @@ Upgrade.upgrade = function(callback) {
winston.info('[2014/2/14] Added posts to sorted set - skipped');
next();
}
},
function(next) {
var checkDate = Date.UTC(2014, 1, 14, 21, 50);
if (schemaDate < checkDate) {
thisSchemaDate = checkDate;
updatesMade = true;
winston.info('[2014/2/14] Migrating to UTC schemaDate');
next();
} else {
winston.info('[2014/2/14] Migrating to UTC schemaDate -- skipped');
next();
}
}
// Add new schema updates here
// IMPORTANT: REMEMBER TO UPDATE VALUE OF latestSchema IN LINE 17!!!