
  END IF;
  END IF;
  END IF;
  END IF;
  END IF;
END//
DELIMITER ;
CALL add_user_id_if_missing();
DROP PROCEDURE add_user_id_if_missing;
  END IF;
  END IF;
  END IF;
  END IF;
  END IF;
END//
DELIMITER ;
CALL add_user_indexes_if_missing();
DROP PROCEDURE add_user_indexes_if_missing;
