MySQL: Adding an IF condition to trigger?
You forgot END //

DROP TRIGGER IF EXISTS `init_uuid_company`//
CREATE TRIGGER `init_uuid_company` BEFORE INSERT ON `company`
 FOR EACH ROW BEGIN
  IF(NEW.uuid IS NULL OR NEW.uuid = '') THEN 
   SET NEW.uuid = UUID();
  END IF;
 END //