From ca4f358362e065a250f6b636fb847927219b95d1 Mon Sep 17 00:00:00 2001 From: CiaranG Date: Wed, 24 Sep 2008 07:35:50 -0400 Subject: PostgreSQL: Corrections to the two new table definitions darcs-hash:20080924113550-f6e2c-8791d68684424ef028049ee9ed95b3853dd8f770.gz --- db/laconica_pg.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/laconica_pg.sql b/db/laconica_pg.sql index b7ef57d27..24ba0a99a 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' */, -- cgit v1.2.3-54-g00ecf