in core/lib/sqlparse/models.py [0:0]
def __eq__(self, other):
for attr in (
"name",
"engine",
"charset",
"collate",
"row_format",
"key_block_size",
"comment",
# "partition",
"partition_config",
):
if not is_equal(getattr(self, attr), getattr(other, attr)):
return False
if self.primary_key != other.primary_key:
return False
for idx in self.indexes:
if idx not in other.indexes:
return False
for idx in other.indexes:
if idx not in self.indexes:
return False
if self.column_list != other.column_list:
return False
# If we get to this point, the two table structures are identical
return True