Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F454620
20170912.ferret.01.activity.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
606 B
Referenced Files
None
Subscribers
None
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.
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 5:27 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
69597
Default Alt Text
20170912.ferret.01.activity.php (606 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment