Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/lisk/LiskDAO.php
Show First 20 Lines • Show All 1,798 Lines • ▼ Show 20 Lines | foreach ($this->getAllLiskProperties() as $property) { | ||||
// If the column is named `somethingID`, infer it is an ID. | // If the column is named `somethingID`, infer it is an ID. | ||||
if (preg_match('/[a-z]ID$/', $property)) { | if (preg_match('/[a-z]ID$/', $property)) { | ||||
$map[$property] = 'id'; | $map[$property] = 'id'; | ||||
continue; | continue; | ||||
} | } | ||||
// We don't know the type of this column. | // We don't know the type of this column. | ||||
$map[$property] = '<unknown>'; | $map[$property] = PhabricatorConfigSchemaSpec::DATATYPE_UNKNOWN; | ||||
} | } | ||||
return $map; | return $map; | ||||
} | } | ||||
public function getSchemaKeys() { | public function getSchemaKeys() { | ||||
$custom_map = $this->getConfigOption(self::CONFIG_KEY_SCHEMA); | $custom_map = $this->getConfigOption(self::CONFIG_KEY_SCHEMA); | ||||
if (!$custom_map) { | if (!$custom_map) { | ||||
Show All 25 Lines |