Commit b2ed258e authored by Evan Prodromou's avatar Evan Prodromou

Avoid resetting modified for Faves in upgrade script

parent 8f787431
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment