Skip to content

[BUG] Didn't support database alias #128

@ramwin

Description

@ramwin

Describe the bug
cannot migrate

To Reproduce
git clone https://github.com/ramwin/schoolproject.git
cd schoolproject
# install clickhouse_backend

# in schoolproject/database_settings.py add 
"clickhouse": {
        "ENGINE": "clickhouse_backend.backend",
        "PASSWORD": "wangxiang",
}
# in schoolproject/settings.py add
INSTALLED_APPS = [
   ...
   "clickhouse_backend"
]

python3 manage.py migrate --database clickhouse

Expected behavior
A clear and concise description of what you expected to happen.
the migration works

Versions

  • ClickHouse server version. Version can be obtained by running SELECT version() query.
  • Python version. 3.10.12
  • Clickhouse-driver version. 25.5.2.47
  • Django version. 5.1.6
  • Django clickhouse backend version. 1.4

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions