Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add #286: Add parent table in utils #308

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

indiVar0508
Copy link
Contributor

Added parent_table method as suggested by @AbdealiJK in #286 using #299 ,

Add Table.__versioning_manager__ so we can keep track of the manager
used for a table.

Allow table in get_versioning_manager()
Also add unittests for the function
parent_table = next(
iter(
t
for t in versioning_manager.association_tables
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we change association_tables -> association_tables_map ?
That way we can do a simple lookup here instead of versioning_manager.options['table_name'] % t.name == table.name

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @AbdealiJK ,

added a lookup dict to capture association version_tables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants