From: CiaranG Date: Wed, 24 Sep 2008 11:35:50 +0000 (-0400) Subject: PostgreSQL: Corrections to the two new table definitions X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ca4f358362e065a250f6b636fb847927219b95d1;p=quix0rs-gnu-social.git PostgreSQL: Corrections to the two new table definitions darcs-hash:20080924113550-f6e2c-8791d68684424ef028049ee9ed95b3853dd8f770.gz --- diff --git a/db/laconica_pg.sql b/db/laconica_pg.sql index b7ef57d27f..24ba0a99ab 100644 --- a/db/laconica_pg.sql +++ b/db/laconica_pg.sql @@ -290,7 +290,7 @@ create index foreign_subscription_subscribed_idx on foreign_subscription using b create table invitation ( code varchar(32) not null primary key /* comment 'random code for an invitation' */, - user_id int not null /* comment 'who sent the invitation' */ references user (id), + user_id int not null /* comment 'who sent the invitation' */ references "user" (id), address varchar(255) not null /* comment 'invitation sent to' */, address_type varchar(8) not null /* comment 'address type ("email", "jabber", "sms") '*/, created timestamp not null /* comment 'date this record was created' */ @@ -302,7 +302,7 @@ create index invitation_user_id_idx on invitation using btree(user_id); create table message ( id serial primary key /* comment 'unique identifier' */, - uri varchar(255) unique key /* comment 'universally unique identifier' */, + uri varchar(255) unique /* comment 'universally unique identifier' */, from_profile integer not null /* comment 'who the message is from' */ references profile (id), to_profile integer not null /* comment 'who the message is to' */ references profile (id), content varchar(140) /* comment 'message content' */,