code: def get_create_index_sql(self, index, table):
          
          if isinstance(table, Table):
              table = table.get_quoted_name(self)
  
          name = index.get_quoted_name(self)
          columns = index.get_quoted_columns(self)
  
          if not columns:
              raise DBALException('Incomplete definition. "columns" required.')
  
          if index.is_primary():
              return self.get_create_primary_key_sql(index, table)
  
          query = "CREATE %sINDEX %s ON %s" % (
              self.get_create_index_sql_flags(index),
              name,
              table,
          )
          query += " (%s)%s" % (
              self.get_index_field_declaration_list_sql(columns),
              self.get_partial_index_sql(index),
          )
  
          return query
docs: Returns the SQL to create an index on a table on this platform.
  
          :param index: The index
          :type index: Index
  
          :param table: The table
          :type table: Table or str
  
          :rtype: str