Skip to content

Node.js based forum software built for the modern web

fix upgrade script so it only runs once

barisusakli2eec1afc46b0
diff --git a/src/upgrade.js b/src/upgrade.js
index 791aefacae..f8177a90d0 100644
--- a/src/upgrade.js
+++ b/src/upgrade.js
@@ -893,7 +893,7 @@ Upgrade.upgrade = function(callback) {
thisSchemaDate = Date.UTC(2016, 9, 8);
- if (schemaDate < thisSchemaDate || 1) {
+ if (schemaDate < thisSchemaDate) {
updatesMade = true;
winston.info('[2016/10/8] favourite -> bookmark refactor');
async.series([upgradePosts, upgradeUsers], function(err) {