X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=db%2F08to09_pg.sql;h=d3eb644437f7b5ea6e6684fa5462e67d95bbbfa0;hb=6ed88dee940e1f873c62742c562d53ef36a16291;hp=498a94e68a505450e7ecc62b73d052748bf96f44;hpb=b1a68e15b760aa2e588680c9e8c7526a7a6d1d13;p=quix0rs-gnu-social.git diff --git a/db/08to09_pg.sql b/db/08to09_pg.sql index 498a94e68a..d3eb644437 100644 --- a/db/08to09_pg.sql +++ b/db/08to09_pg.sql @@ -120,3 +120,21 @@ create table inbox ( ); +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) +); + +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) + +); +