From 5bcc87a8079089e78f736b4e4c417df348a6b067 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 2 Apr 2014 20:55:02 -0400 Subject: [PATCH] adding one last migration to UTC datetime for 0.3.2 --- src/upgrade.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/upgrade.js b/src/upgrade.js index 9e2c43ebb1..c54bb4993e 100644 --- a/src/upgrade.js +++ b/src/upgrade.js @@ -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!!!