summaryrefslogtreecommitdiff
path: root/db/local_group.sql
blob: 14973e755982429f13f0e5a42ee2e8394df1c231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;