]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Blog/Blog_entry.php
Merge branch '1.0.x' of gitorious.org:statusnet/mainline into 1.0.x
[quix0rs-gnu-social.git] / plugins / Blog / Blog_entry.php
index f3166f870ad299e4abde7dcd0dc08c9885d639ed..b40039b2d78677e20460be045cb6b427c63e4c48 100644 (file)
@@ -63,7 +63,7 @@ class Blog_entry extends Managed_DataObject
     
     function staticGet($k, $v=null)
     {
-        return Managed_DataObject::staticGet('blog_entry', $k, $v);
+        return Managed_DataObject::staticGet('Blog_entry', $k, $v);
     }
 
     static function schemaDef()
@@ -99,12 +99,14 @@ class Blog_entry extends Managed_DataObject
                                     'description' => 'date this record was created'),
             ),
             'primary key' => array('id'),
+            'unique keys' => array(
+                'blog_entry_uri_key' => array('uri'),
+            ),
             'foreign keys' => array(
                 'blog_entry_profile_id_fkey' => array('profile', array('profile_id' => 'id')),
             ),
             'indexes' => array(
-                'blog_entry_created_idx' => array('created'),
-                'blog_entry_uri_idx' => array('uri'),
+                'blog_entry_created_idx' => array('created')
             ),
         );
     }