Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92783673
PhabricatorSearchIndexVersionDestructionEngineExtension.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
Sat, Nov 23, 16:51
Size
564 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 16:51 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
22513779
Attached To
rPH Phabricator
PhabricatorSearchIndexVersionDestructionEngineExtension.php
View Options
<?php
final
class
PhabricatorSearchIndexVersionDestructionEngineExtension
extends
PhabricatorDestructionEngineExtension
{
const
EXTENSIONKEY
=
'search.index.version'
;
public
function
getExtensionName
()
{
return
pht
(
'Search Index Versions'
);
}
public
function
destroyObject
(
PhabricatorDestructionEngine
$engine
,
$object
)
{
$table
=
new
PhabricatorSearchIndexVersion
();
queryfx
(
$table
->
establishConnection
(
'w'
),
'DELETE FROM %T WHERE objectPHID = %s'
,
$table
->
getTableName
(),
$object
->
getPHID
());
}
}
Event Timeline
Log In to Comment