Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93471580
20170912.ferret.01.activity.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 29, 01:02
Size
606 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 01:02 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22643473
Attached To
rPH Phabricator
20170912.ferret.01.activity.php
View Options
<?php
// Advise installs to perform a reindex in order to rebuild the Ferret engine
// indexes.
// If the install is completely empty with no user accounts, don't require
// a rebuild. In particular, this happens when rebuilding the quickstart file.
$users
=
id
(
new
PhabricatorUser
())->
loadAllWhere
(
'1 = 1 LIMIT 1'
);
if
(!
$users
)
{
return
;
}
try
{
id
(
new
PhabricatorConfigManualActivity
())
->
setActivityType
(
PhabricatorConfigManualActivity
::
TYPE_REINDEX
)
->
save
();
}
catch
(
AphrontDuplicateKeyQueryException
$ex
)
{
// If we've already noted that this activity is required, just move on.
}
Event Timeline
Log In to Comment