Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/lisk/LiskDAO.php
Show First 20 Lines • Show All 1,804 Lines • ▼ Show 20 Lines | public function getSchemaKeys() { | ||||
} | } | ||||
$default_map = array(); | $default_map = array(); | ||||
foreach ($this->getAllLiskProperties() as $property) { | foreach ($this->getAllLiskProperties() as $property) { | ||||
switch ($property) { | switch ($property) { | ||||
case 'id': | case 'id': | ||||
$default_map['PRIMARY'] = array( | $default_map['PRIMARY'] = array( | ||||
'columns' => array('id'), | 'columns' => array('id'), | ||||
'unique' => true, | |||||
); | ); | ||||
break; | break; | ||||
case 'phid': | case 'phid': | ||||
$default_map['key_phid'] = array( | $default_map['key_phid'] = array( | ||||
'columns' => array('phid'), | 'columns' => array('phid'), | ||||
'unique' => true, | |||||
); | ); | ||||
break; | break; | ||||
} | } | ||||
} | } | ||||
return $custom_map + $default_map; | return $custom_map + $default_map; | ||||
} | } | ||||
} | } |