-
Notifications
You must be signed in to change notification settings - Fork 0
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
SQLAlchemy update 1.4 -> 2.0 #43
Open
teald
wants to merge
37
commits into
main
Choose a base branch
from
sqlalchemy_update
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Instead, it is accessed through session.get(to_be_queried, key).
Changes most of the `relation` calls to `relationship` calls per the warning messages. However, this causes at least one error due to a nuance in how `relation` works, it seems, and that needs to be diagnosed.
This non-sql related update catches the base exception caught in FileOpser.fileop and adds its message to the FileOpser.doerror message. This is mainly for convenience with updating, and can be omitted later if desired.
This overrides SQLAlchemy's declarative_base in both instances when creating the declarative base class.
16 tasks
… on session not engine
… the work for the summit and archive releases
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Resolves issue #39
Status
This currently passes:
code_tests
✅It will require more testing before being merged in.
Changes
requirements.txt
nox
requirement_dev.txt
(contains some top-level, non-development dependencies at the moment)❓-> Added, but can be removed before merging. These are for my own convenience.
Migration info/todo
See Issue #39 for details.