'description' => array('type' => 'text'),
'created' => array('type' => 'datetime', 'not null' => true),
),
- 'primary key' => array('id'),
+ 'primary key' => array('uri'),
'unique keys' => array(
- 'bookmark_uri_key' => array('uri'),
+ 'bookmark_id_key' => array('id'),
),
'foreign keys' => array(
'bookmark_profile_id_fkey' => array('profile', array('profile_id' => 'id')),
*/
static public function fromStored(Notice $stored)
{
- $class = get_called_class();
- return self::getByPK(array('uri', $stored->getUri()));
+ return self::getByPK(array('uri' => $stored->getUri()));
}
/**