Changeset View
Changeset View
Standalone View
Standalone View
src/applications/drydock/storage/DrydockLog.php
Show All 13 Lines | final class DrydockLog extends DrydockDAO | ||||
public function getConfiguration() { | public function getConfiguration() { | ||||
return array( | return array( | ||||
self::CONFIG_TIMESTAMPS => false, | self::CONFIG_TIMESTAMPS => false, | ||||
self::CONFIG_COLUMN_SCHEMA => array( | self::CONFIG_COLUMN_SCHEMA => array( | ||||
'resourceID' => 'id?', | 'resourceID' => 'id?', | ||||
'leaseID' => 'id?', | 'leaseID' => 'id?', | ||||
'message' => 'text', | 'message' => 'text', | ||||
), | ), | ||||
self::CONFIG_KEY_SCHEMA => array( | |||||
'resourceID' => array( | |||||
'columns' => array('resourceID', 'epoch'), | |||||
), | |||||
'leaseID' => array( | |||||
'columns' => array('leaseID', 'epoch'), | |||||
), | |||||
'epoch' => array( | |||||
'columns' => array('epoch'), | |||||
), | |||||
), | |||||
) + parent::getConfiguration(); | ) + parent::getConfiguration(); | ||||
} | } | ||||
public function attachResource(DrydockResource $resource = null) { | public function attachResource(DrydockResource $resource = null) { | ||||
$this->resource = $resource; | $this->resource = $resource; | ||||
return $this; | return $this; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |