#NEWLINE# def diff_map( self , inobj ) : #NEWLINE# #INDENT# 'Generate SQL to transform an existing object\n\n        :param inobj: a YAML map defining the new object\n        :return: list of SQL statements\n        ' #NEWLINE# stmts = super ( DbObjectWithOptions , self ) . diff_map ( inobj ) #NEWLINE# newopts = [ ] #NEWLINE# if hasattr ( stmts , 'options' ) : #NEWLINE# #INDENT# newopts = inobj . options #NEWLINE# #UNINDENT# diff_opts = self . diff_options ( newopts ) #NEWLINE# if diff_opts : #NEWLINE# #INDENT# stmts . append ( ( 'ALTER %s %s %s' % ( self . objtype , self . identifier ( ) , diff_opts ) ) ) #NEWLINE# #UNINDENT# return stmts