]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
rebuild DB_DataObject classes for new structure
authorEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 20:07:11 +0000 (16:07 -0400)
committerEvan Prodromou <evan@prodromou.name>
Wed, 9 Jul 2008 20:07:11 +0000 (16:07 -0400)
darcs-hash:20080709200711-84dde-b6a9e403ab50ef5a6497a25a756ed63c373f0402.gz

classes/Notice.php
classes/Profile.php
classes/Reply.php
classes/stoica.ini

index 24a719104fc9a263e8b08feaa2046cb8b403d551..a00114f95df2043db1a0258c7c009ceb629e6352 100644 (file)
@@ -34,9 +34,11 @@ class Notice extends DB_DataObject
     public $profile_id;                      // int(4)   not_null
     public $uri;                             // varchar(255)  unique_key
     public $content;                         // varchar(140)  
+    public $rendered;                        // text()  
     public $url;                             // varchar(255)  
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
+    public $reply_to;                        // int(4)  
 
     /* Static get */
     function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Notice',$k,$v); }
index f41acad4c89aa1d563cf2603f7cf75a791a15788..0cf1397c73176f0b6321519ce660900013f647c3 100644 (file)
@@ -31,12 +31,12 @@ class Profile extends DB_DataObject
 
     public $__table = 'profile';                         // table name
     public $id;                              // int(4)  primary_key not_null
-    public $nickname;                        // varchar(64)   not_null
-    public $fullname;                        // varchar(255)  
+    public $nickname;                        // varchar(64)  multiple_key not_null
+    public $fullname;                        // varchar(255)  multiple_key
     public $profileurl;                      // varchar(255)  
-    public $homepage;                        // varchar(255)  
-    public $bio;                             // varchar(140)  
-    public $location;                        // varchar(255)  
+    public $homepage;                        // varchar(255)  multiple_key
+    public $bio;                             // varchar(140)  multiple_key
+    public $location;                        // varchar(255)  multiple_key
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
 
index 8b341b1c796b0d0c776ac90096bf2434619fa5be..8e26f1684ebcd874698e2e7ef2c865a7dabdc76e 100644 (file)
@@ -12,8 +12,8 @@ class Reply extends DB_DataObject
     public $__table = 'reply';                           // table name
     public $notice_id;                       // int(4)  primary_key not_null
     public $profile_id;                      // int(4)  primary_key not_null
-    public $replied_id;                      // int(4)  
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
+    public $replied_id;                      // int(4)  
 
     /* Static get */
     function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Reply',$k,$v); }
index 1ceaab80e817e277f58ca329d3deecc7984a9cae..d03a3ffa046fded08413899499473cdf8684789d 100644 (file)
@@ -56,9 +56,11 @@ id = 129
 profile_id = 129
 uri = 2
 content = 2
+rendered = 34
 url = 2
 created = 142
 modified = 384
+reply_to = 1
 
 [notice__keys]
 id = N
@@ -108,8 +110,8 @@ uri = U
 [reply]
 notice_id = 129
 profile_id = 129
-replied_id = 1
 modified = 384
+replied_id = 1
 
 [reply__keys]
 notice_id = K