Changeset View
Changeset View
Standalone View
Standalone View
resources/sql/autopatches/20140722.appname.php
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
// This originally migrated pinned applications in user preferences, but was | // This originally migrated pinned applications in user preferences, but was | ||||
// removed to simplify preference changes after about 22 months. | // removed to simplify preference changes after about 22 months. | ||||
/* -( Dashboard installs )------------------------------------------------- */ | /* -( Dashboard installs )------------------------------------------------- */ | ||||
echo pht('Migrating dashboard installs...')."\n"; | // This originally migrated dashboard install locations, but was removed | ||||
$table = new PhabricatorDashboardInstall(); | // after about 5 years. | ||||
$conn_w = $table->establishConnection('w'); | |||||
foreach (new LiskMigrationIterator($table) as $dashboard_install) { | |||||
$application = $dashboard_install->getApplicationClass(); | |||||
queryfx( | |||||
$conn_w, | |||||
'UPDATE %T SET applicationClass = %s WHERE id = %d', | |||||
$table->getTableName(), | |||||
idx($map, $application, $application), | |||||
$dashboard_install->getID()); | |||||
} | |||||
/* -( Phabricator configuration )------------------------------------------ */ | /* -( Phabricator configuration )------------------------------------------ */ | ||||
$config_key = 'phabricator.uninstalled-applications'; | $config_key = 'phabricator.uninstalled-applications'; | ||||
echo pht('Migrating `%s` config...', $config_key)."\n"; | echo pht('Migrating `%s` config...', $config_key)."\n"; | ||||
$config = PhabricatorConfigEntry::loadConfigEntry($config_key); | $config = PhabricatorConfigEntry::loadConfigEntry($config_key); | ||||
$old_config = $config->getValue(); | $old_config = $config->getValue(); | ||||
Show All 34 Lines |