#NEWLINE# def _get_column_names_in_altered_table( self , diff ) : #NEWLINE# #INDENT# '\n        :param diff: The table diff\n        :type diff: orator.dbal.table_diff.TableDiff\n\n        :rtype: dict\n        ' #NEWLINE# columns = OrderedDict ( ) #NEWLINE# for ( column_name , column ) in diff . from_table . get_columns ( ) . items ( ) : #NEWLINE# #INDENT# columns [ column_name . lower ( ) ] = column . get_name ( ) #NEWLINE# #UNINDENT# for ( column_name , column ) in diff . removed_columns . items ( ) : #NEWLINE# #INDENT# column_name = column_name . lower ( ) #NEWLINE# if ( column_name in columns ) : #NEWLINE# #INDENT# del columns [ column_name ] #NEWLINE# #UNINDENT# #UNINDENT# for ( old_column_name , column ) in diff . renamed_columns . items ( ) : #NEWLINE# #INDENT# column_name = column . get_name ( ) #NEWLINE# columns [ old_column_name . lower ( ) ] = column_name #NEWLINE# columns [ column_name . lower ( ) ] = old_column_name #NEWLINE# #UNINDENT# for ( old_column_name , column_diff ) in diff . changed_columns . items ( ) : #NEWLINE# #INDENT# column_name = column_diff . column . get_name ( ) #NEWLINE# columns [ old_column_name . lower ( ) ] = column_name #NEWLINE# columns [ column_name . lower ( ) ] = column_name #NEWLINE# #UNINDENT# for ( column_name , column ) in diff . added_columns . items ( ) : #NEWLINE# #INDENT# columns [ column_name . lower ( ) ] = column_name #NEWLINE# #UNINDENT# return columns