summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-13 17:28:31 -0800
committerEvan Prodromou <evan@status.net>2010-01-13 17:28:31 -0800
commit8d6b4cadf378d273b3e1ec40aa62e86a87977dee (patch)
tree20387ed55c52f3ab4b54939c3bd8ebe20410b103 /db
parent4d7cdbf1c65f54cd66eb7eab23985d4db0351b63 (diff)
script to upgrade from RC2 to RC3
Diffstat (limited to 'db')
-rw-r--r--db/rc2torc3.sql17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/rc2torc3.sql b/db/rc2torc3.sql
new file mode 100644
index 000000000..886b9adf2
--- /dev/null
+++ b/db/rc2torc3.sql
@@ -0,0 +1,17 @@
+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;
+
+create table inbox (
+
+ user_id integer not null comment 'user receiving the notice' references user (id),
+ notice_ids blob comment 'packed list of notice ids',
+
+ constraint primary key (user_id)
+
+) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;