1 alter table status_network
3 add column site_id integer auto_increment primary key first,
4 add unique key (nickname);
6 create table status_network_tag (
7 site_id integer comment 'unique id',
8 tag varchar(64) comment 'tag name',
9 created datetime not null comment 'date the record was created',
11 constraint primary key (site_id, tag)
12 ) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_general_ci;