ALTER TABLE `gmcropdatabase_events` ADD `developerId` int(11) NOT NULL;

UPDATE `gmcropdatabase_events` LEFT JOIN `gmcropdatabase_events_companies` 
    ON BINARY `gmcropdatabase_events_companies`.`eventId`=`gmcropdatabase_events`.`id`
SET `developerId` = `gmcropdatabase_events_companies`.`companyId`;

DROP TABLE `gmcropdatabase_events_companies`;
DROP TABLE `gmcropdatabase_events_bibliography`;