Remove product literal strings in "pht()", part 21
[phabricator.git] / resources / sql / autopatches / 20140323.harbor.1.renames.php
blob8aab25d8760947edd8d5fac42f21f3e684190262
1 <?php
3 $names = array(
4 'CommandBuildStepImplementation',
5 'LeaseHostBuildStepImplementation',
6 'PublishFragmentBuildStepImplementation',
7 'SleepBuildStepImplementation',
8 'UploadArtifactBuildStepImplementation',
9 'WaitForPreviousBuildStepImplementation',
12 $tables = array(
13 id(new HarbormasterBuildStep())->getTableName(),
14 id(new HarbormasterBuildTarget())->getTableName(),
17 echo pht('Renaming Harbormaster classes...')."\n";
19 $conn_w = id(new HarbormasterBuildStep())->establishConnection('w');
20 foreach ($names as $name) {
21 $old = $name;
22 $new = 'Harbormaster'.$name;
24 echo pht('Renaming %s -> %s...', $old, $new)."\n";
25 foreach ($tables as $table) {
26 queryfx(
27 $conn_w,
28 'UPDATE %T SET className = %s WHERE className = %s',
29 $table,
30 $new,
31 $old);
35 echo pht('Done.')."\n";