Changeset View
Changeset View
Standalone View
Standalone View
src/applications/almanac/storage/AlmanacDeviceProperty.php
- This file was added.
| <?php | |||||
| final class AlmanacDeviceProperty extends AlmanacDAO { | |||||
| protected $devicePHID; | |||||
| protected $key; | |||||
| protected $value; | |||||
| public function getConfiguration() { | |||||
| return array( | |||||
| self::CONFIG_SERIALIZATION => array( | |||||
| 'value' => self::SERIALIZATION_JSON, | |||||
| ), | |||||
| self::CONFIG_COLUMN_SCHEMA => array( | |||||
epriestley: As above. We'll be able to figure out the types of `devicePHID` based on the name (it's a PHID)… | |||||
| 'key' => 'text128', | |||||
Not Done Inline ActionsBecause this table has a special key, you'll also need self::CONFIG_KEY_SCHEMA, with something like: 'key_device' => array(
'columns' => array('devicePHID', 'key'),
)epriestley: Because this table has a special key, you'll also need `self::CONFIG_KEY_SCHEMA`, with… | |||||
| ), | |||||
| self::CONFIG_KEY_SCHEMA => array( | |||||
| 'key_device' => array( | |||||
| 'columns' => array('devicePHID', 'key'), | |||||
| ), | |||||
| ), | |||||
| ) + parent::getConfiguration(); | |||||
| } | |||||
| } | |||||
As above. We'll be able to figure out the types of devicePHID based on the name (it's a PHID) and value because it's serialized, but not key: