1 -- Primary key and expiry column in user_groups table
3 DROP INDEX IF EXISTS /*i*/ug_user_group ON /*_*/user_groups;
4 ALTER TABLE /*_*/tag_summary ADD CONSTRAINT pk_user_groups PRIMARY KEY(ug_user, ug_group);
5 ALTER TABLE /*_*/tag_summary ADD ug_expiry varchar(14) DEFAULT NULL;
6 CREATE INDEX /*i*/ug_expiry ON /*_*/user_groups(ug_expiry);