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 missing indexes #93

Merged
merged 13 commits into from
May 25, 2021
Merged

Add missing indexes #93

merged 13 commits into from
May 25, 2021

Conversation

rod-glover
Copy link
Contributor

@rod-glover rod-glover commented May 21, 2021

Resolves #91

Also corrects a bug in the definition of ORM class StationObservationStats.

@rod-glover rod-glover changed the title I91 missing indexes Add missing indexes May 21, 2021
@rod-glover rod-glover requested a review from corviday May 21, 2021 18:20
Copy link
Contributor

@corviday corviday left a comment

Choose a reason for hiding this comment

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

More contingency wrangling! Looks good to me.

This operation's class is identical to DropConstraintOp except for
class method names which become operation names. The new names dispatch
to the old names.
"""
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't understand the role of the "old names" or "legacy names" in this operation. That may just be my lack of context.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't either. I am reusing the considerable boilerplate in the parent class, and this is how operation methods are declared. The reasons are doubtless deep in the development history of Alembic. All I am really doing is renaming a function, and I am copying the way its delegate is declared in the parent class.

ORM declarations for tables.

Notes:

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@rod-glover rod-glover merged commit e15dc3d into master May 25, 2021
@rod-glover rod-glover deleted the i91-missing-indexes branch May 25, 2021 18:02
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.

Add missing indexes
2 participants