]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add design_id to User_group
authorZach Copley <zach@controlyourself.ca>
Thu, 18 Jun 2009 05:16:09 +0000 (22:16 -0700)
committerZach Copley <zach@controlyourself.ca>
Thu, 18 Jun 2009 05:16:09 +0000 (22:16 -0700)
classes/User_group.php
classes/laconica.ini
db/laconica.sql

index 1a24124bb176413e70bfe2b31702d39ddfbdcf14..8a56b9e52b32e893cab4fd5f0c582abd2380330b 100644 (file)
@@ -19,6 +19,7 @@ class User_group extends Memcached_DataObject
     public $homepage_logo;                   // varchar(255)
     public $stream_logo;                     // varchar(255)
     public $mini_logo;                       // varchar(255)
+    public $design_id;                       // int(4)
     public $created;                         // datetime()   not_null
     public $modified;                        // timestamp()   not_null default_CURRENT_TIMESTAMP
 
@@ -239,4 +240,10 @@ class User_group extends Memcached_DataObject
         }
         return null;
     }
+
+    function getDesign()
+    {
+        return Design::staticGet('id', $this->design_id);
+    }
+
 }
index 1a650aba552583b408feb53cc5df38ebf3129d04..5ced158851023e69f0c278675eeae60b474f18c1 100755 (executable)
@@ -468,6 +468,7 @@ original_logo = 2
 homepage_logo = 2
 stream_logo = 2
 mini_logo = 2
+design_id = 1
 created = 142
 modified = 384
 
index b018afec8ee0f1472261876cb72bf8df7cb2ea31..8d1d47d38d35c14d2d9d45b46f5410645cbc452b 100644 (file)
@@ -387,6 +387,7 @@ create table user_group (
     homepage_logo varchar(255) comment 'homepage (profile) size logo',
     stream_logo varchar(255) comment 'stream-sized logo',
     mini_logo varchar(255) comment 'mini logo',
+    design_id integer comment 'id of a design' references design(id),
 
     created datetime not null comment 'date this record was created',
     modified timestamp comment 'date this record was modified',