Skip to content

Commit

Permalink
skip 'spatial' indexes (MySQL)
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbrew committed Apr 28, 2023
1 parent 95c36bc commit 589b857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/core/management/commands/inspectdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def get_meta(
comment = ""
if params["type"] not in ["btree", Index.suffix]:
comment = f'Index type is {params["type"]}'
if params["type"] == "rtree" and len(columns) == 1:
if params["type"] in ["rtree", "spatial"] and len(columns) == 1:
# assume this is a default spatial index, so let's make a note of it and

Check failure on line 410 in django/core/management/commands/inspectdb.py

View workflow job for this annotation

GitHub Actions / flake8

line too long (92 > 88 characters)
# continue
index_comments.append(
Expand Down

0 comments on commit 589b857

Please sign in to comment.