From eed0facc87781e25e59337f1371489742a945764 Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Thu, 27 May 2010 03:00:58 +0000 Subject: added user_location_prefs to upgrade script --- db/08to09_pg.sql | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'db') diff --git a/db/08to09_pg.sql b/db/08to09_pg.sql index b7a0eb8e8..cc1edc5ec 100644 --- a/db/08to09_pg.sql +++ b/db/08to09_pg.sql @@ -101,3 +101,13 @@ alter table queue_item rename to queue_item_old; alter table queue_item_new rename to queue_item; +create table user_location_prefs ( + user_id integer not null /*comment 'user who has the preference'*/ references "user" (id), + share_location int default 1 /* comment 'Whether to share location data'*/, + created timestamp not null /*comment 'date this record was created'*/, + modified timestamp /* comment 'date this record was modified'*/, + + primary key (user_id) +); + + -- cgit v1.2.3 From af4fd327429fcc01769b33ece458a77a37b2463f Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Thu, 27 May 2010 03:06:42 +0000 Subject: added the inbox table to postgres upgrade script --- db/08to09_pg.sql | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'db') diff --git a/db/08to09_pg.sql b/db/08to09_pg.sql index cc1edc5ec..c2fabf63b 100644 --- a/db/08to09_pg.sql +++ b/db/08to09_pg.sql @@ -110,4 +110,12 @@ create table user_location_prefs ( primary key (user_id) ); +create table inbox ( + + user_id integer not null /* comment 'user receiving the notice' */ references "user" (id), + notice_ids bytea /* comment 'packed list of notice ids' */, + + primary key (user_id) + +); -- cgit v1.2.3