summaryrefslogtreecommitdiff
path: root/plugins/UserFlag
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-11-07 13:39:55 -0500
committerEvan Prodromou <evan@status.net>2009-11-07 13:39:55 -0500
commit5cd385fe4f09939d726847a60ddd950e31e3065d (patch)
tree6e8286e0bdc410f6b6e2b3896fdf47cdd1982746 /plugins/UserFlag
parent0668520a8df15c52b26b6d4ca6abb1a714aecd17 (diff)
fixup key definition for User_flag_profile
Diffstat (limited to 'plugins/UserFlag')
-rw-r--r--plugins/UserFlag/User_flag_profile.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/UserFlag/User_flag_profile.php b/plugins/UserFlag/User_flag_profile.php
index d32886872..30bd4ae68 100644
--- a/plugins/UserFlag/User_flag_profile.php
+++ b/plugins/UserFlag/User_flag_profile.php
@@ -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)