From b2ed258e42c622fa394f541eb4b3c56373b821dd Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 12 Sep 2011 15:24:47 -0400 Subject: [PATCH] Avoid resetting modified for Faves in upgrade script --- scripts/upgrade.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/upgrade.php b/scripts/upgrade.php index 2b116733c6..4c793ac15e 100644 --- a/scripts/upgrade.php +++ b/scripts/upgrade.php @@ -300,10 +300,12 @@ function initFaveURI() try { $fave->decache(); $fave->query(sprintf('update fave '. - 'set uri = "%s" '. + 'set uri = "%s", '. + ' modified = "%s" '. 'where user_id = %d '. 'and notice_id = %d', Fave::newURI($fave->user_id, $fave->notice_id, $fave->modified), + common_sql_date(strtotime($fave->modified)), $fave->user_id, $fave->notice_id)); } catch (Exception $e) { -- 2.39.5