mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
36e2d02d6e
Summary: `pht`ize a whole bunch of strings in rP. Test Plan: Intense eyeballing. Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: hach-que, Korvin, epriestley Differential Revision: https://secure.phabricator.com/D12797
35 lines
830 B
PHP
35 lines
830 B
PHP
<?php
|
|
|
|
$names = array(
|
|
'CommandBuildStepImplementation',
|
|
'LeaseHostBuildStepImplementation',
|
|
'PublishFragmentBuildStepImplementation',
|
|
'SleepBuildStepImplementation',
|
|
'UploadArtifactBuildStepImplementation',
|
|
'WaitForPreviousBuildStepImplementation',
|
|
);
|
|
|
|
$tables = array(
|
|
id(new HarbormasterBuildStep())->getTableName(),
|
|
id(new HarbormasterBuildTarget())->getTableName(),
|
|
);
|
|
|
|
echo pht('Renaming Harbormaster classes...')."\n";
|
|
|
|
$conn_w = id(new HarbormasterBuildStep())->establishConnection('w');
|
|
foreach ($names as $name) {
|
|
$old = $name;
|
|
$new = 'Harbormaster'.$name;
|
|
|
|
echo pht('Renaming %s -> %s...', $old, $new)."\n";
|
|
foreach ($tables as $table) {
|
|
queryfx(
|
|
$conn_w,
|
|
'UPDATE %T SET className = %s WHERE className = %s',
|
|
$table,
|
|
$new,
|
|
$old);
|
|
}
|
|
}
|
|
|
|
echo pht('Done.')."\n";
|