#NEWLINE# def get_current_schema_version( self ) : #NEWLINE# #INDENT# db = self . __mysql_connect ( ) #NEWLINE# cursor = db . cursor ( ) #NEWLINE# cursor . execute ( ( 'select version from %s order by id desc limit 0,1;' % version . __version_table ) ) #NEWLINE# version = cursor . fetchone ( ) [ 0 ] #NEWLINE# cursor . close ( ) #NEWLINE# db . close ( ) #NEWLINE# return version