]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - db/08to09_pg.sql
Fix incorrect UI message. Spotted by Nike.
[quix0rs-gnu-social.git] / db / 08to09_pg.sql
index 1c9a31699a41e6b7637c54845eb138f04b90ff8b..d3eb644437f7b5ea6e6684fa5462e67d95bbbfa0 100644 (file)
@@ -102,3 +102,39 @@ 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),
+    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)
+
+);
+