]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Extended profile - add a date value for fields
authorZach Copley <zach@status.net>
Mon, 14 Mar 2011 19:53:49 +0000 (12:53 -0700)
committerZach Copley <zach@status.net>
Mon, 14 Mar 2011 19:53:49 +0000 (12:53 -0700)
plugins/ExtendedProfile/Profile_detail.php

index f9f4d00098eee17f440285977f3cc4a5b1b02408..96869b0e63bc252cc0452184d89180794a9739f3 100644 (file)
@@ -64,6 +64,7 @@ class Profile_detail extends Managed_DataObject
     public $field_name;  // name
     public $field_value; // primary text value
     public $value_index; // relative ordering of multiple values in the same field
+    public $date;        // related date
     public $ref_profile; // for people types, allows pointing to a known profile in the system
     public $created;
     public $modified;
@@ -118,6 +119,7 @@ class Profile_detail extends Managed_DataObject
                 ),
                 'value_index' => array('type' => 'int'),
                 'field_value' => array('type' => 'text'),
+                'date'        => array('type' => 'datetime'),
                 'rel'         => array('type' => 'varchar', 'length' => 16),
                 'rel_profile' => array('type' => 'int'),
                 'created'     => array(