diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-06-17 23:56:42 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-06-17 23:56:42 -0700 |
commit | 79e732bd03c020eab36ceb13c5a712e76df3ac75 (patch) | |
tree | 48cd2d1b916a8f53beefa6c856677eb5278921f1 /db/laconica.sql | |
parent | 19d39b20294bad8dc14df26e76756c558a5083cf (diff) | |
parent | c14c9e1a086f0de29ef5c37fbeb34f6082b1c5ef (diff) |
Merge branch '0.8.x' into twitterpriv
Diffstat (limited to 'db/laconica.sql')
-rw-r--r-- | db/laconica.sql | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/laconica.sql b/db/laconica.sql index b8c0824f5..b018afec8 100644 --- a/db/laconica.sql +++ b/db/laconica.sql @@ -41,6 +41,7 @@ create table sms_carrier ( /* local users */ create table user ( + id integer primary key comment 'foreign key to profile table' references profile (id), nickname varchar(64) unique key comment 'nickname or username, duped in profile', password varchar(255) comment 'salted password, can be null for OpenID users', @@ -69,6 +70,9 @@ create table user ( autosubscribe tinyint default 0 comment 'automatically subscribe to users who subscribe to us', urlshorteningservice varchar(50) default 'ur1.ca' comment 'service to use for auto-shortening URLs', inboxed tinyint default 0 comment 'has an inbox been created for this user?', + design_id integer comment 'id of a design' references design(id), + viewdesigns tinyint default 1 comment 'whether to view user-provided designs', + created datetime not null comment 'date this record was created', modified timestamp comment 'date this record was modified', @@ -484,6 +488,17 @@ create table file_to_post ( unique(file_id, post_id) ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; +create table design ( + id integer primary key auto_increment comment 'design ID', + backgroundcolor integer comment 'main background color', + contentcolor integer comment 'content area background color', + sidebarcolor integer comment 'sidebar background color', + textcolor integer comment 'text color', + linkcolor integer comment 'link color', + backgroundimage varchar(255) comment 'background image, if any', + disposition tinyint default 1 comment 'bit 1 = hide background image, bit 2 = display background image, bit 4 = tile background image' +) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin; + create table group_block ( group_id integer not null comment 'group profile is blocked from' references user_group (id), blocked integer not null comment 'profile that is blocked' references profile (id), |