]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
added user_location_prefs to upgrade script
authorBrenda Wallace <shiny@cpan.org>
Thu, 27 May 2010 03:00:58 +0000 (03:00 +0000)
committerBrenda Wallace <shiny@cpan.org>
Thu, 27 May 2010 03:02:01 +0000 (15:02 +1200)
db/08to09_pg.sql

index 1c9a31699a41e6b7637c54845eb138f04b90ff8b..de228c117bb79598a5b9d19b84e76420ce0850db 100644 (file)
@@ -102,3 +102,13 @@ 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)
+);
+