X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=db%2F08to09_pg.sql;fp=db%2F08to09_pg.sql;h=d3eb644437f7b5ea6e6684fa5462e67d95bbbfa0;hb=640e7e7c43fa8e9b1a8516b486e560df84bd9887;hp=c2fabf63ba3f97ab6f6061bfcaf459fdd8e23508;hpb=af4fd327429fcc01769b33ece458a77a37b2463f;p=quix0rs-gnu-social.git diff --git a/db/08to09_pg.sql b/db/08to09_pg.sql index c2fabf63ba..d3eb644437 100644 --- a/db/08to09_pg.sql +++ b/db/08to09_pg.sql @@ -100,6 +100,25 @@ insert into queue_item_new (frame,transport,created,claimed) alter table queue_item rename to queue_item_old; alter table queue_item_new rename to queue_item; +ALTER TABLE confirm_address ALTER column sent set default CURRENT_TIMESTAMP; + +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) + +); create table user_location_prefs ( user_id integer not null /*comment 'user who has the preference'*/ references "user" (id),