Skip to content

Automigration creation of same table but different schema #1426

Description

@j0hn-mc-clane

Hello

I found a small bug inside of the DiffableTable logic.
The equals check in DiffableTable should also check the schema for true equality.

Proposal:

def better_eq(self, value) -> bool:
    if not isinstance(value, DiffableTable):
        return False
    return (
        (self.schema == value.schema)
        and (self.class_name == value.class_name)
        and (self.tablename == value.tablename)
    )


DiffableTable.__eq__ = better_eq

Thanks for taking this up.

Cheers

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions