Page MenuHomePhorge

20140323.harbor.1.renames.php
No OneTemporary

Size
802 B
Referenced Files
None
Subscribers
None

20140323.harbor.1.renames.php

<?php
$names = array(
'CommandBuildStepImplementation',
'LeaseHostBuildStepImplementation',
'PublishFragmentBuildStepImplementation',
'SleepBuildStepImplementation',
'UploadArtifactBuildStepImplementation',
'WaitForPreviousBuildStepImplementation',
);
$tables = array(
id(new HarbormasterBuildStep())->getTableName(),
id(new HarbormasterBuildTarget())->getTableName(),
);
echo "Renaming Harbormaster classes...\n";
$conn_w = id(new HarbormasterBuildStep())->establishConnection('w');
foreach ($names as $name) {
$old = $name;
$new = 'Harbormaster'.$name;
echo "Renaming {$old} -> {$new}...\n";
foreach ($tables as $table) {
queryfx(
$conn_w,
'UPDATE %T SET className = %s WHERE className = %s',
$table,
$new,
$old);
}
}
echo "Done.\n";

File Metadata

Mime Type
text/x-php
Expires
Mon, Jun 30, 8:18 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
270388
Default Alt Text
20140323.harbor.1.renames.php (802 B)

Event Timeline