]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Added missing index declarations.
authorRoland Haeder <roland@mxchange.org>
Mon, 18 Aug 2014 13:16:22 +0000 (15:16 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 24 Aug 2014 11:21:59 +0000 (13:21 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
classes/User_username.php
plugins/Blog/classes/Blog_entry.php

index d9f517c5488caa925a0d8273ad625f48c1098e30..b252ee31565f58234859ca87ac1eaa23bdd7123e 100644 (file)
@@ -30,6 +30,9 @@ class User_username extends Managed_DataObject
                 'modified' => array('type' => 'timestamp', 'not null' => true, 'description' => 'date this record was modified'),
             ),
             'primary key' => array('provider_name', 'username'),
+            'indexes' => array(
+                'user_id_idx' => array('user_id')
+            ),
             'foreign keys' => array(
                 'user_username_user_id_fkey' => array('user', array('user_id' => 'id')),
             ),
index 20bf4da83f6f12bdd98dbd16b4ab7cfecb6ab472..1f585dce4ff854c15b5b1c5ac8d0f7cebbd89671 100644 (file)
@@ -97,12 +97,13 @@ class Blog_entry extends Managed_DataObject
             '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_profile_id_idx' => array('profile_id'),
                 'blog_entry_created_idx' => array('created')
             ),
+            'foreign keys' => array(
+                'blog_entry_profile_id_fkey' => array('profile', array('profile_id' => 'id')),
+            ),
         );
     }