summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-02-25 12:08:23 -0800
committerBrion Vibber <brion@pobox.com>2010-02-25 12:08:23 -0800
commit7e0872c7ca9827220ad9859abaeea268c9d4fee6 (patch)
tree2648d4b2fa2296ec23126852449d749ea40be931
parentb7037a49af97db73b3adc77d3f78ffb0805c7c68 (diff)
Add local_group.sql with DB changes to user_group, setup and populate local_group.
-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;