From: Evan Prodromou Date: Mon, 12 Sep 2011 19:24:47 +0000 (-0400) Subject: Avoid resetting modified for Faves in upgrade script X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b2ed258e42c622fa394f541eb4b3c56373b821dd;p=quix0rs-gnu-social.git Avoid resetting modified for Faves in upgrade script --- 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) {