public function delete()
 {
     $this->openTransaction();
     queryfx($this->establishConnection('w'), 'DELETE FROM %T WHERE arcanistProjectID = %d', id(new PhabricatorRepositorySymbol())->getTableName(), $this->getID());
     $result = parent::delete();
     $this->saveTransaction();
     return $result;
 }
 public function delete()
 {
     $data = $this->loadCommitData();
     $this->openTransaction();
     if ($data) {
         $data->delete();
     }
     $result = parent::delete();
     $this->saveTransaction();
     return $result;
 }
 public function delete()
 {
     $this->openTransaction();
     $conn_w = $this->establishConnection('w');
     $symbols = id(new PhabricatorRepositorySymbol())->loadAllWhere('arcanistProjectID = %d', $this->getID());
     foreach ($symbols as $symbol) {
         $symbol->delete();
     }
     $result = parent::delete();
     $this->saveTransaction();
     return $result;
 }
 public function delete()
 {
     $data = $this->loadCommitData();
     $audits = id(new PhabricatorRepositoryAuditRequest())->loadAllWhere('commitPHID = %s', $this->getPHID());
     $this->openTransaction();
     if ($data) {
         $data->delete();
     }
     foreach ($audits as $audit) {
         $audit->delete();
     }
     $result = parent::delete();
     $this->saveTransaction();
     return $result;
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_COLUMN_SCHEMA => array('name' => 'text128', 'lintCommit' => 'text40?'), self::CONFIG_KEY_SCHEMA => array('repositoryID' => array('columns' => array('repositoryID', 'name'), 'unique' => true))) + parent::getConfiguration();
 }
 public function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_COLUMN_SCHEMA => array('uri' => 'text255', 'builtinProtocol' => 'text32?', 'builtinIdentifier' => 'text32?', 'credentialPHID' => 'phid?', 'ioType' => 'text32', 'displayType' => 'text32', 'isDisabled' => 'bool'), self::CONFIG_KEY_SCHEMA => array('key_builtin' => array('columns' => array('repositoryPHID', 'builtinProtocol', 'builtinIdentifier'), 'unique' => true))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_COLUMN_SCHEMA => array('passwordHash' => 'text128'), self::CONFIG_KEY_SCHEMA => array('key_phid' => array('columns' => array('userPHID'), 'unique' => true))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_COLUMN_SCHEMA => array('remoteURI' => 'text255', 'credentialPHID' => 'phid?'), self::CONFIG_KEY_SCHEMA => array('key_repository' => array('columns' => array('repositoryPHID')))) + parent::getConfiguration();
 }
 public function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_TIMESTAMPS => false, self::CONFIG_SERIALIZATION => array('symbolIndexLanguages' => self::SERIALIZATION_JSON, 'symbolIndexProjects' => self::SERIALIZATION_JSON)) + parent::getConfiguration();
 }
 public function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_TIMESTAMPS => false, self::CONFIG_BINARY => array('refNameRaw' => true)) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array('oldCommitIdentifier' => 'text40', 'newCommitIdentifier' => 'text40?', 'hintType' => 'text32'), self::CONFIG_KEY_SCHEMA => array('key_old' => array('columns' => array('repositoryPHID', 'oldCommitIdentifier'), 'unique' => true))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array('name' => 'text128', 'repositoryID' => 'id?'), self::CONFIG_KEY_SCHEMA => array('key_phid' => null, 'phid' => array('columns' => array('phid'), 'unique' => true), 'name' => array('columns' => array('name'), 'unique' => true))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array('repositoryURI' => 'text'), self::CONFIG_KEY_SCHEMA => array('key_repository' => array('columns' => array('repositoryPHID')), 'key_uri' => array('columns' => array('repositoryURI(128)')))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array('remoteAddress' => 'uint32?', 'remoteProtocol' => 'text32?', 'rejectCode' => 'uint32', 'rejectDetails' => 'text64?'), self::CONFIG_KEY_SCHEMA => array('key_repository' => array('columns' => array('repositoryPHID')))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_TIMESTAMPS => false, self::CONFIG_BINARY => array('refNameRaw' => true), self::CONFIG_COLUMN_SCHEMA => array('refType' => 'text12', 'refNameHash' => 'bytes12?', 'refNameRaw' => 'bytes?', 'refNameEncoding' => 'text16?', 'refOld' => 'text40?', 'refNew' => 'text40', 'mergeBase' => 'text40?', 'changeFlags' => 'uint32'), self::CONFIG_KEY_SCHEMA => array('key_repository' => array('columns' => array('repositoryPHID')), 'key_ref' => array('columns' => array('repositoryPHID', 'refNew')), 'key_name' => array('columns' => array('repositoryPHID', 'refNameHash')), 'key_event' => array('columns' => array('pushEventPHID')), 'key_pusher' => array('columns' => array('pusherPHID')))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_AUX_PHID => true, self::CONFIG_BINARY => array('refNameRaw' => true), self::CONFIG_COLUMN_SCHEMA => array('refType' => 'text32', 'refNameHash' => 'bytes12', 'commitIdentifier' => 'text40', 'refNameEncoding' => 'text16?', 'isClosed' => 'bool'), self::CONFIG_KEY_SCHEMA => array('key_cursor' => array('columns' => array('repositoryPHID', 'refType', 'refNameHash')))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_SERIALIZATION => array('auditReasons' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('auditStatus' => 'text64'), self::CONFIG_KEY_SCHEMA => array('commitPHID' => array('columns' => array('commitPHID')), 'auditorPHID' => array('columns' => array('auditorPHID', 'auditStatus')), 'key_unique' => array('columns' => array('commitPHID', 'auditorPHID'), 'unique' => true))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_COLUMN_SCHEMA => array('objectHash' => 'bytes64', 'byteSize' => 'uint64'), self::CONFIG_KEY_SCHEMA => array('key_hash' => array('columns' => array('repositoryPHID', 'objectHash'), 'unique' => true))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array('repositoryVersion' => 'uint32', 'isWriting' => 'bool', 'writeProperties' => 'text?', 'lockOwner' => 'text255?'), self::CONFIG_KEY_SCHEMA => array('key_workingcopy' => array('columns' => array('repositoryPHID', 'devicePHID'), 'unique' => true))) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array('commitIdentifier' => 'text40'), self::CONFIG_KEY_SCHEMA => array('key_repository' => array('columns' => array('repositoryPHID')))) + parent::getConfiguration();
 }
Exemplo n.º 22
0
 public function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_SERIALIZATION => array('details' => self::SERIALIZATION_JSON)) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_AUX_PHID => true, self::CONFIG_TIMESTAMPS => false, self::CONFIG_SERIALIZATION => array('properties' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('repositoryPHID' => 'phid?', 'pullerPHID' => 'phid?', 'remoteAddress' => 'ipaddress?', 'remoteProtocol' => 'text32?', 'resultType' => 'text32', 'resultCode' => 'uint32'), self::CONFIG_KEY_SCHEMA => array('key_repository' => array('columns' => array('repositoryPHID')), 'key_epoch' => array('columns' => array('epoch')))) + parent::getConfiguration();
 }
 public function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_SERIALIZATION => array('parameters' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('statusType' => 'text32', 'statusCode' => 'text32', 'messageCount' => 'uint32'), self::CONFIG_KEY_SCHEMA => array('repositoryID' => array('columns' => array('repositoryID', 'statusType'), 'unique' => true))) + parent::getConfiguration();
 }
 public function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_SERIALIZATION => array('commitDetails' => self::SERIALIZATION_JSON)) + parent::getConfiguration();
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_SERIALIZATION => array('commitDetails' => self::SERIALIZATION_JSON), self::CONFIG_COLUMN_SCHEMA => array('authorName' => 'text', 'commitMessage' => 'text'), self::CONFIG_KEY_SCHEMA => array('commitID' => array('columns' => array('commitID'), 'unique' => true))) + parent::getConfiguration();
 }
 public function delete()
 {
     $this->openTransaction();
     $paths = id(new PhabricatorOwnersPath())->loadAllWhere('repositoryPHID = %s', $this->getPHID());
     foreach ($paths as $path) {
         $path->delete();
     }
     queryfx($this->establishConnection('w'), 'DELETE FROM %T WHERE repositoryPHID = %s', id(new PhabricatorRepositorySymbol())->getTableName(), $this->getPHID());
     $commits = id(new PhabricatorRepositoryCommit())->loadAllWhere('repositoryID = %d', $this->getID());
     foreach ($commits as $commit) {
         // note PhabricatorRepositoryAuditRequests and
         // PhabricatorRepositoryCommitData are deleted here too.
         $commit->delete();
     }
     $mirrors = id(new PhabricatorRepositoryMirror())->loadAllWhere('repositoryPHID = %s', $this->getPHID());
     foreach ($mirrors as $mirror) {
         $mirror->delete();
     }
     $ref_cursors = id(new PhabricatorRepositoryRefCursor())->loadAllWhere('repositoryPHID = %s', $this->getPHID());
     foreach ($ref_cursors as $cursor) {
         $cursor->delete();
     }
     $conn_w = $this->establishConnection('w');
     queryfx($conn_w, 'DELETE FROM %T WHERE repositoryID = %d', self::TABLE_FILESYSTEM, $this->getID());
     queryfx($conn_w, 'DELETE FROM %T WHERE repositoryID = %d', self::TABLE_PATHCHANGE, $this->getID());
     queryfx($conn_w, 'DELETE FROM %T WHERE repositoryID = %d', self::TABLE_SUMMARY, $this->getID());
     $result = parent::delete();
     $this->saveTransaction();
     return $result;
 }
 protected function getConfiguration()
 {
     return array(self::CONFIG_TIMESTAMPS => false, self::CONFIG_COLUMN_SCHEMA => array('id' => null, 'symbolContext' => 'text128', 'symbolName' => 'text128', 'symbolType' => 'text12', 'symbolLanguage' => 'text32', 'lineNumber' => 'uint32'), self::CONFIG_KEY_SCHEMA => array('PRIMARY' => null, 'symbolName' => array('columns' => array('symbolName')))) + parent::getConfiguration();
 }