Page MenuHomec4science

20140914.betaproto.php
No OneTemporary

File Metadata

Created
Fri, Nov 22, 10:16

20140914.betaproto.php

<?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";

Event Timeline