Fixed diff generator when several identical tables were renamed

Fixed diff generator when databases have several tables with identical
DDL and several of them were renamed.