
ALTER TABLE yy_sysrole ADD PRIMARY KEY (id);
ALTER TABLE yy_sysrole MODIFY id BIGINT NOT NULL AUTO_INCREMENT;


ALTER TABLE yy_sysrolechannelmapping ADD temp_id BIGINT AUTO_INCREMENT PRIMARY KEY FIRST;
UPDATE yy_sysrolechannelmapping SET id = temp_id;
ALTER TABLE yy_sysrolechannelmapping DROP temp_id;
ALTER TABLE yy_sysrolechannelmapping ADD PRIMARY KEY (id);
ALTER TABLE yy_sysrolechannelmapping MODIFY id BIGINT NOT NULL AUTO_INCREMENT;