forked from galaxyproject/galaxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix mypy error due to alembic 1.11.0
Alembic 1.11.0 made the `table_name` argument of `op.drop_index()` keyword-only, causing the following failure in the test_galaxy_packages build (where alembic is not pinned): ``` galaxy/model/migrations/util.py:30: error: Too many positional arguments for "drop_index" [misc] op.drop_index(index_name, table_name) ^ ``` xref: sqlalchemy/alembic#1243 Also drop the unused `columns` parameter from our wrapper method, as done already in the dev branch.
Showing
3 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ def upgrade(): | |
|
||
|
||
def downgrade(): | ||
drop_index(index_name, table_name, columns) | ||
drop_index(index_name, table_name) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ def upgrade(): | |
|
||
|
||
def downgrade(): | ||
drop_index(index_name, table_name, columns) | ||
drop_index(index_name, table_name) |
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