Avoid resetting modified for Faves in upgrade script

This commit is contained in:
Evan Prodromou 2011-09-12 15:24:47 -04:00
parent 8f78743198
commit b2ed258e42
1 changed files with 3 additions and 1 deletions

View File

@ -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) {