summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-08-25 22:40:15 -0400
committerEvan Prodromou <evan@prodromou.name>2008-08-25 22:40:15 -0400
commitee722bf8cced321963368bf284d86a1ece85a981 (patch)
tree52a285054af592f3a5d772dc2e7486205ddda83a /db
parent3d48ae94e61626b0a4d0c474ca1ff1fb355346d4 (diff)
clean up some whitespace in DB script
darcs-hash:20080826024015-84dde-4258c99348f5d665d99a82cf50444fab9391336c.gz
Diffstat (limited to 'db')
-rw-r--r--db/laconica.sql10
1 files changed, 4 insertions, 6 deletions
diff --git a/db/laconica.sql b/db/laconica.sql
index 613cc5820..3f07b15f6 100644
--- a/db/laconica.sql
+++ b/db/laconica.sql
@@ -268,11 +268,11 @@ create table foreign_user (
service int not null comment 'foreign key to service' references foreign_service(id),
uri varchar(255) not null unique key comment 'identifying URI',
nickname varchar(255) comment 'nickname on foreign service',
- user_id int comment 'link to user on this system, if exists' references user (id),
+ user_id int comment 'link to user on this system, if exists' references user (id),
credentials varchar(255) comment 'authc credentials, typically a password',
created datetime not null comment 'date this record was created',
modified timestamp comment 'date this record was modified',
-
+
constraint primary key (id, service),
index foreign_user_user_id_idx (user_id)
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
@@ -282,7 +282,7 @@ create table foreign_subscription (
subscriber int not null comment 'subscriber on foreign service' references foreign_user (id),
subscribed int not null comment 'subscribed user' references foreign_user (id),
created datetime not null comment 'date this record was created',
-
+
constraint primary key (service, subscriber, subscribed),
index foreign_subscription_subscriber_idx (subscriber),
index foreign_subscription_subscribed_idx (subscribed)
@@ -294,9 +294,7 @@ create table invitation (
address varchar(255) not null comment 'invitation sent to',
address_type varchar(8) not null comment 'address type ("email", "jabber", "sms")',
created datetime not null comment 'date this record was created',
-
+
index invitation_address_idx (address, address_type),
index invitation_user_id_idx (user_id)
) ENGINE=MyISAM CHARACTER SET utf8 COLLATE utf8_bin;
-
- \ No newline at end of file