]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
invert key -> (user, page) mapping in Realtime_channel table
authorEvan Prodromou <evan@status.net>
Mon, 11 Jul 2011 17:53:55 +0000 (13:53 -0400)
committerEvan Prodromou <evan@status.net>
Mon, 11 Jul 2011 17:53:55 +0000 (13:53 -0400)
plugins/Realtime/Realtime_channel.php

index 2e25cac20fa766b889c785954ddef510c7983210..39d89fbf9f886bbbb6f5590f9a461e86a06a02dc 100644 (file)
@@ -124,8 +124,8 @@ class Realtime_channel extends Managed_DataObject
                                                                'not null' => true,
                                                            'description' => 'date this record was modified'),
             ),
-            'primary key' => array('user_id', 'action', 'arg1', 'arg2'),
-            'unique keys' => array('realtime_channel_channel_key_idx' => array('channel_key')),
+            'primary key' => array('channel_key'),
+            'unique keys' => array('realtime_channel_user_page_idx' => array('user_id', 'action', 'arg1', 'arg2')),
             'foreign keys' => array(
                 'realtime_channel_user_id_fkey' => array('user', array('user_id' => 'id')),
             ),