Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93529206
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
Fri, Nov 29, 11:59
Size
442 B
Mime Type
text/x-php
Expires
Sun, Dec 1, 11:59 (2 d)
Engine
blob
Format
Raw Data
Handle
22660294
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