def handle_constraint_fields(string, fields):
  if '(' in string:
    start_index, end_index = get_indeces(string) 
    fields.append(string[start_index:end_index])
    string = string[0:start_index] + string[end_index:]
    string, fields = handle_constraint_fields(string, fields) 
  return string, fields
dataset/ETHPy150Open robotframework/DbBot/doc/create_database_diagram_from_database_file.py/handle_constraint_fields/original