Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1191863
20180306.opath.03.purge.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
545 B
Referenced Files
None
Subscribers
None
20180306.opath.03.purge.php
View Options
<?php
$table
=
new
PhabricatorOwnersPath
();
$conn
=
$table
->
establishConnection
(
'w'
);
$seen
=
array
();
foreach
(
new
LiskMigrationIterator
(
$table
)
as
$path
)
{
$package_id
=
$path
->
getPackageID
();
$repository_phid
=
$path
->
getRepositoryPHID
();
$path_index
=
$path
->
getPathIndex
();
if
(!
isset
(
$seen
[
$package_id
][
$repository_phid
][
$path_index
]))
{
$seen
[
$package_id
][
$repository_phid
][
$path_index
]
=
true
;
continue
;
}
queryfx
(
$conn
,
'DELETE FROM %T WHERE id = %d'
,
$table
->
getTableName
(),
$path
->
getID
());
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jul 2, 5:10 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
294774
Default Alt Text
20180306.opath.03.purge.php (545 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment