We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86512a9 commit d67ab51Copy full SHA for d67ab51
clickhouse_backend/backend/schema.py
@@ -213,10 +213,14 @@ def _model_indexes_sql(self, model):
213
)
214
if (
215
any(field.db_index for field in model._meta.local_fields)
216
- or model._meta.index_together
+ or any(len(index.fields) > 1 for index in model._meta.indexes)
217
):
218
warnings.warn(msg)
219
220
+ # index_together is deprecated in django 5.1
221
+ if hasattr(model._meta, "index_together") and model._meta.index_together:
222
+ warnings.warn(msg)
223
+
224
for index in model._meta.indexes:
225
output.append(index.create_sql(model, self))
226
0 commit comments