Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893405
20140914.betaproto.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
560 B
Referenced Files
None
Subscribers
None
20140914.betaproto.php
View Options
<?php
$old_key
=
'phabricator.show-beta-applications'
;
$new_key
=
'phabricator.show-prototypes'
;
echo
pht
(
"Migrating '%s' to '%s'..."
,
$old_key
,
$new_key
)
.
"\n"
;
if
(
PhabricatorEnv
::
getEnvConfig
(
$new_key
)
)
{
echo
pht
(
'Skipping migration, new data is already set.'
)
.
"\n"
;
return
;
}
$old
=
PhabricatorEnv
::
getEnvConfigIfExists
(
$old_key
)
;
if
(
!
$old
)
{
echo
pht
(
'Skipping migration, old data does not exist.'
)
.
"\n"
;
return
;
}
PhabricatorConfigEntry
::
loadConfigEntry
(
$new_key
)
->
setIsDeleted
(
0
)
->
setValue
(
$old
)
->
save
(
)
;
echo
pht
(
'Done.'
)
.
"\n"
;
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:21 (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127383
Default Alt Text
20140914.betaproto.php (560 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment