Differential D16575 Diff 39896 src/applications/repository/storage/PhabricatorRepositoryStatusMessage.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/repository/storage/PhabricatorRepositoryStatusMessage.php
<?php | <?php | ||||
final class PhabricatorRepositoryStatusMessage | final class PhabricatorRepositoryStatusMessage | ||||
extends PhabricatorRepositoryDAO { | extends PhabricatorRepositoryDAO { | ||||
const TYPE_INIT = 'init'; | const TYPE_INIT = 'init'; | ||||
const TYPE_FETCH = 'fetch'; | const TYPE_FETCH = 'fetch'; | ||||
const TYPE_NEEDS_UPDATE = 'needs-update'; | const TYPE_NEEDS_UPDATE = 'needs-update'; | ||||
const CODE_ERROR = 'error'; | const CODE_ERROR = 'error'; | ||||
const CODE_WORKING = 'working'; | |||||
const CODE_OKAY = 'okay'; | const CODE_OKAY = 'okay'; | ||||
protected $repositoryID; | protected $repositoryID; | ||||
protected $statusType; | protected $statusType; | ||||
protected $statusCode; | protected $statusCode; | ||||
protected $parameters = array(); | protected $parameters = array(); | ||||
protected $epoch; | protected $epoch; | ||||
protected $messageCount; | |||||
protected function getConfiguration() { | protected function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_SERIALIZATION => array( | self::CONFIG_SERIALIZATION => array( | ||||
'parameters' => self::SERIALIZATION_JSON, | 'parameters' => self::SERIALIZATION_JSON, | ||||
), | ), | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'statusType' => 'text32', | 'statusType' => 'text32', | ||||
'statusCode' => 'text32', | 'statusCode' => 'text32', | ||||
'messageCount' => 'uint32', | |||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | self::CONFIG_KEY_SCHEMA => array( | ||||
'repositoryID' => array( | 'repositoryID' => array( | ||||
'columns' => array('repositoryID', 'statusType'), | 'columns' => array('repositoryID', 'statusType'), | ||||
'unique' => true, | 'unique' => true, | ||||
), | ), | ||||
), | ), | ||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
Show All 18 Lines |