summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-25 21:15:20 +0000
committerBrion Vibber <brion@pobox.com>2010-02-25 21:15:20 +0000
commit8278eca7ffe5d8c3e05fead042754640b8169411 (patch)
tree8ab320801d83acf77f3908e08e49cc6cc8a434e4 /db
parentb5b5184c885e74d9532409a5962f851c4baf41c4 (diff)
Not sure how this ended up in wrong-cased dir...
Diffstat (limited to 'db')
-rw-r--r--db/local_group.sql17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/local_group.sql b/db/local_group.sql
new file mode 100644
index 000000000..14973e755
--- /dev/null
+++ b/db/local_group.sql
@@ -0,0 +1,17 @@
+alter table user_group
+ add uri varchar(255) unique key comment 'universal identifier',
+ add mainpage varchar(255) comment 'page for group info to link to',
+ drop index nickname;
+
+create table local_group (
+
+ group_id integer primary key comment 'group represented' references user_group (id),
+ nickname varchar(64) unique key comment 'group represented',
+
+ created datetime not null comment 'date this record was created',
+ modified timestamp comment 'date this record was modified'
+
+) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin;
+
+insert into local_group (group_id, nickname, created, modified)
+ select id, nickname, created, modified from user_group;