Describe the bug
On trying out the basic example provided in the repo, i got the below error on migration:
Running migrations:
Traceback (most recent call last):
File "/app/manage.py", line 22, in <module>
main()
File "/app/manage.py", line 18, in main
execute_from_command_line(sys.argv)
File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 436, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 413, in run_from_argv
self.execute(*args, **cmd_options)
File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 459, in execute
output = self.handle(*args, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/core/management/base.py", line 107, in wrapper
res = handle_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/core/management/commands/migrate.py", line 357, in handle
post_migrate_state = executor.migrate(
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/django/db/migrations/executor.py", line 107, in migrate
self.recorder.ensure_schema()
File "/usr/local/lib/python3.12/site-packages/django/db/migrations/recorder.py", line 78, in ensure_schema
editor.create_model(self.Migration)
File "/usr/local/lib/python3.12/site-packages/django/db/backends/base/schema.py", line 525, in create_model
self.deferred_sql.extend(self._model_indexes_sql(model))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/clickhouse_backend/backend/schema.py", line 216, in _model_indexes_sql
or model._meta.index_together
^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Options' object has no attribute 'index_together'. Did you mean: 'unique_together'?
Expected behavior
This error happens on trying to run the migrate function. Also another thing i noted was that the table to get created on the migrate command besides this error. Also in the migrate.md file, in the limitations its specified that Anonymous indexes and constraints(db_index, unique, index_together, unique_together) are not supported, you must provide names explicitly., so does this have to do anything with the error?
edit: i tried on django=5.0 and same issue.
Versions
ClickHouse server version: 24.9.1.3278
Python version: 3.12
Clickhouse-driver version: Using docker for running clickhouse
Describe the bug On trying out the basic example provided in the repo, i got the below error on migration:
To Reproduce The following sample code was used:
Expected behavior This error happens on trying to run the migrate function. Also another thing i noted was that the table to get created on the migrate command besides this error. Also in the migrate.md file, in the limitations its specified that
Anonymous indexes and constraints(db_index, unique, index_together, unique_together) are not supported, you must provide names explicitly.
, so does this have to do anything with the error? edit: i tried on django=5.0 and same issue.Versions