ALTER TABLE request_group_entries DROP FOREIGN KEY request_group_entries_ibfk_1;

ALTER TABLE request_group_entries CHANGE group_id group_id BIGINT NOT NULL;
ALTER TABLE request_groups CHANGE id id BIGINT NOT NULL AUTO_INCREMENT;

ALTER TABLE request_group_entries ADD FOREIGN KEY fk_group_id (group_id) REFERENCES request_groups (id);
