summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-28 13:54:09 -0800
committerEvan Prodromou <evan@status.net>2009-12-28 13:54:09 -0800
commitb141f7aea5be3ad66d51d0ec958b2c342bcf489f (patch)
tree57ab3b0cf1027ab4deaa6478642e4bdf7f20dd14 /db
parent8d4e617d4e36fdcee7c2536085e5d2b13449e14a (diff)
Add user_location_prefs to upgrade script
Diffstat (limited to 'db')
-rw-r--r--db/08to09.sql10
1 files changed, 10 insertions, 0 deletions
diff --git a/db/08to09.sql b/db/08to09.sql
index 28ec3ec16..d9c25bc72 100644
--- a/db/08to09.sql
+++ b/db/08to09.sql
@@ -84,3 +84,13 @@ create table login_token (
constraint primary key (user_id)
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
+
+create table user_location_prefs (
+ user_id integer not null comment 'user who has the preference' references user (id),
+ share_location tinyint default 1 comment 'Whether to share location data',
+ created datetime not null comment 'date this record was created',
+ modified timestamp comment 'date this record was modified',
+
+ constraint primary key (user_id)
+) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
+