#NEWLINE# def _create_like_index_sql( self , model , field ) : #NEWLINE# #INDENT# "\n        Return the statement to create an index with varchar operator pattern\n        when the column type is 'varchar' or 'text', otherwise return None.\n        " #NEWLINE# db_type = field . db_type ( connection = self . connection ) #NEWLINE# if ( ( db_type is not None ) and ( field . db_index or field . unique ) ) : #NEWLINE# #INDENT# if ( '[' in db_type ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if db_type . startswith ( 'varchar' ) : #NEWLINE# #INDENT# return self . _create_index_sql ( model , [ field ] , suffix = '_like' , sql = self . sql_create_varchar_index ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if db_type . startswith ( 'text' ) : #NEWLINE# #INDENT# return self . _create_index_sql ( model , [ field ] , suffix = '_like' , sql = self . sql_create_text_index ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return None