#NEWLINE# def compare_to( self , another_migration ) : #NEWLINE# #INDENT# if ( self . version < another_migration . version ) : #NEWLINE# #INDENT# return ( - 1 ) #NEWLINE# #UNINDENT# if ( self . version > self . version ) : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# if ( self . file_name < another_migration . file_name ) : #NEWLINE# #INDENT# return ( - 1 ) #NEWLINE# #UNINDENT# if ( self . file_name > another_migration . file_name ) : #NEWLINE# #INDENT# return 1 #NEWLINE# #UNINDENT# return 0