Skip to content

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
@waketzheng waketzheng deleted the vector branch July 20, 2025 13:03
@waketzheng waketzheng mentioned this pull request Oct 9, 2025
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