#NEWLINE# def get_migration( self , forward_template , reverse_template = Ellipsis , testing_only = False ) : #NEWLINE# #INDENT# if ( testing_only and ( not settings . UNIT_TESTING ) ) : #NEWLINE# #INDENT# return noop_migration ( ) #NEWLINE# #UNINDENT# forward_path = os . path . join ( self . base_path , forward_template ) #NEWLINE# if ( reverse_template is Ellipsis ) : #NEWLINE# #INDENT# reverse_template = 'SELECT 1' #NEWLINE# #UNINDENT# reverse_path = None #NEWLINE# if reverse_template : #NEWLINE# #INDENT# reverse_path = os . path . join ( self . base_path , reverse_template ) #NEWLINE# #UNINDENT# return RunSqlLazy ( forward_path , reverse_path , self . template_context )