-
-
Notifications
You must be signed in to change notification settings - Fork 965
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
Avoid to use features that will be removed in SQLAlchemy v2.0 #4304
Changes from 6 commits
b1df10c
cbafba2
65abd8a
e57e151
9b16291
ae5bf5a
3d20af1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -1098,9 +1098,11 @@ def _init_alembic(self) -> None: | |||||||||
|
||||||||||
def _set_alembic_revision(self, revision: str) -> None: | ||||||||||
|
||||||||||
context = alembic_migration.MigrationContext.configure(self.engine.connect()) | ||||||||||
script = self._create_alembic_script() | ||||||||||
context.stamp(script, revision) | ||||||||||
connection = self.engine.connect() | ||||||||||
context = alembic_migration.MigrationContext.configure(connection) | ||||||||||
with connection.begin(): | ||||||||||
script = self._create_alembic_script() | ||||||||||
context.stamp(script, revision) | ||||||||||
Comment on lines
+1101
to
+1105
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [Note] I confirmed that this logic worked with the following test case locally. optuna/tests/storages_tests/rdb_tests/test_storage.py Lines 139 to 142 in 4d06898
Maybe we can activate it in a follow-up PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch! |
||||||||||
|
||||||||||
def check_table_schema_compatibility(self) -> None: | ||||||||||
|
||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.