3 final class PhabricatorRepositoryURIIndex
4 extends PhabricatorRepositoryDAO
{
6 protected $repositoryPHID;
7 protected $repositoryURI;
9 protected function getConfiguration() {
11 self
::CONFIG_TIMESTAMPS
=> false,
12 self
::CONFIG_COLUMN_SCHEMA
=> array(
13 'repositoryURI' => 'text',
15 self
::CONFIG_KEY_SCHEMA
=> array(
16 'key_repository' => array(
17 'columns' => array('repositoryPHID'),
20 'columns' => array('repositoryURI(128)'),
23 ) + parent
::getConfiguration();
26 public static function updateRepositoryURIs(
31 $conn_w = $table->establishConnection('w');
34 foreach ($uris as $key => $uri) {
47 $table->openTransaction();
51 'DELETE FROM %R WHERE repositoryPHID = %s',
58 'INSERT INTO %R (repositoryPHID, repositoryURI) VALUES %LQ',
63 $table->saveTransaction();