Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93830670
20180910.audit.03.status.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
Sun, Dec 1, 20:44
Size
442 B
Mime Type
text/x-php
Expires
Tue, Dec 3, 20:44 (2 d)
Engine
blob
Format
Raw Data
Handle
22710717
Attached To
rPH Phabricator
20180910.audit.03.status.php
View Options
<?php
$table
=
new
PhabricatorRepositoryCommit
();
$conn
=
$table
->
establishConnection
(
'w'
);
$status_map
=
array
(
0
=>
'none'
,
1
=>
'needs-audit'
,
2
=>
'concern-raised'
,
3
=>
'partially-audited'
,
4
=>
'audited'
,
5
=>
'needs-verification'
,
);
foreach
(
$status_map
as
$old_status
=>
$new_status
)
{
queryfx
(
$conn
,
'UPDATE %R SET auditStatus = %s WHERE auditStatus = %s'
,
$table
,
$new_status
,
$old_status
);
}
Event Timeline
Log In to Comment