Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97994362
20140914.betaproto.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
Wed, Jan 8, 09:47
Size
524 B
Mime Type
text/x-php
Expires
Fri, Jan 10, 09:47 (2 d)
Engine
blob
Format
Raw Data
Handle
23460447
Attached To
rPH Phabricator
20140914.betaproto.php
View Options
<?php
$old_key
=
'phabricator.show-beta-applications'
;
$new_key
=
'phabricator.show-prototypes'
;
echo
"Migrating '{$old_key}' to '{$new_key}'...
\n
"
;
if
(
PhabricatorEnv
::
getEnvConfig
(
$new_key
))
{
echo
"Skipping migration, new data is already set.
\n
"
;
return
;
}
$old
=
PhabricatorEnv
::
getEnvConfigIfExists
(
$old_key
);
if
(!
$old
)
{
echo
"Skipping migration, old data does not exist.
\n
"
;
return
;
}
PhabricatorConfigEntry
::
loadConfigEntry
(
$new_key
)
->
setIsDeleted
(
0
)
->
setValue
(
$old
)
->
save
();
echo
"Done.
\n
"
;
Event Timeline
Log In to Comment