]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fixup key definition for User_flag_profile
authorEvan Prodromou <evan@status.net>
Sat, 7 Nov 2009 18:39:55 +0000 (13:39 -0500)
committerEvan Prodromou <evan@status.net>
Sat, 7 Nov 2009 18:39:55 +0000 (13:39 -0500)
plugins/UserFlag/User_flag_profile.php

index d32886872a21fc51ef174790ced4b78cc9a993a9..30bd4ae68de75aee12a7b5271ba653a909a54a08 100644 (file)
@@ -42,15 +42,15 @@ class User_flag_profile extends Memcached_DataObject
 
     function table() {
         return array(
-                     'profile_id' => DB_DATAOBJECT_INT,
-                     'user_id'    => DB_DATAOBJECT_INT,
-                     'created'    => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME,
+                     'profile_id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
+                     'user_id'    => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
+                     'created'    => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL,
                      'cleared'    => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME
                      );
     }
 
     function keys() {
-        return array('profile_id', 'user_id');
+        return array('profile_id' => 'N', 'user_id' => 'N');
     }
 
     function &pkeyGet($kv)