Add design_id to User_group
This commit is contained in:
parent
c14c9e1a08
commit
dff43c03e4
@ -19,6 +19,7 @@ class User_group extends Memcached_DataObject
|
|||||||
public $homepage_logo; // varchar(255)
|
public $homepage_logo; // varchar(255)
|
||||||
public $stream_logo; // varchar(255)
|
public $stream_logo; // varchar(255)
|
||||||
public $mini_logo; // varchar(255)
|
public $mini_logo; // varchar(255)
|
||||||
|
public $design_id; // int(4)
|
||||||
public $created; // datetime() not_null
|
public $created; // datetime() not_null
|
||||||
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
|
public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
|
||||||
|
|
||||||
@ -239,4 +240,10 @@ class User_group extends Memcached_DataObject
|
|||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getDesign()
|
||||||
|
{
|
||||||
|
return Design::staticGet('id', $this->design_id);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -468,6 +468,7 @@ original_logo = 2
|
|||||||
homepage_logo = 2
|
homepage_logo = 2
|
||||||
stream_logo = 2
|
stream_logo = 2
|
||||||
mini_logo = 2
|
mini_logo = 2
|
||||||
|
design_id = 1
|
||||||
created = 142
|
created = 142
|
||||||
modified = 384
|
modified = 384
|
||||||
|
|
||||||
|
@ -387,6 +387,7 @@ create table user_group (
|
|||||||
homepage_logo varchar(255) comment 'homepage (profile) size logo',
|
homepage_logo varchar(255) comment 'homepage (profile) size logo',
|
||||||
stream_logo varchar(255) comment 'stream-sized logo',
|
stream_logo varchar(255) comment 'stream-sized logo',
|
||||||
mini_logo varchar(255) comment 'mini 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',
|
created datetime not null comment 'date this record was created',
|
||||||
modified timestamp comment 'date this record was modified',
|
modified timestamp comment 'date this record was modified',
|
||||||
|
Loading…
Reference in New Issue
Block a user