8000 fix: pgvector data types cause errors by waketzheng · Pull Request #468 · tortoise/aerich · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: pgvector data types cause errors #468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Jun 27, 2025
Merged

Conversation

waketzheng
Copy link
Contributor

Description

Fixes #465

To inspectdb 'vector' data type, you have to add tool.aerich.inspectdb section into pyproject.toml

[tool.aerich.inspectdb]
vector = "tortoise_vector.field.VectorField"

After that, when you run aerich inspectdb the 'vector' data type will be translated to be 'VectorField' and imported by from tortoise_vector.field import VectorField

@waketzheng waketzheng merged commit 2ffc65b into tortoise:dev Jun 27, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pgvector data types cause errors
1 participant
0