Skip to content
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

Aerich 0.7.1 cannot run with Postgresql #295

Open
unownone opened this issue Apr 3, 2023 · 0 comments
Open

Aerich 0.7.1 cannot run with Postgresql #295

unownone opened this issue Apr 3, 2023 · 0 comments

Comments

@unownone
Copy link

unownone commented Apr 3, 2023

I am trying to setup my migrations but every command ends up being stuck or broken as in issue #63 .
Downgrading Aerich to 0.6.3 fixes the problem.

My pyproject.toml

[tool.poetry.dependencies]
python = "^3.11"
fastapi = "^0.95.0"
openai = "^0.27.2"
uvicorn = "^0.21.1"
orjson = "^3.8.9"
python-multipart = "^0.0.6"
asyncpg = "^0.27.0"
psycopg2-binary = "^2.9.5"
fastapi-login = "^1.9.0"
tortoise-orm = {extras = ["asyncpg"], version = "^0.19.3"}
bcrypt = "^4.0.1"
pydantic = {extras = ["email"], version = "^1.10.7"}
aerich = "0.6.3"


[tool.poetry.scripts]
serve = "tuteai_backend:serve_dev"
serve-prod = "tuteai_backend:serve_prod"
# init-db = "tuteai_backend:initialize_db"
# makemigrations = "tuteai_backend:makemigrations"
# migrate = "tuteai_backend:migrate"

[tool.poetry.group.dev.dependencies]
devtools = "^0.10.0"
alembic = "^1.10.2"



[tool.aerich]
tortoise_orm = "tuteai_backend.TORTOISE_ORM"
location = "./migrations"
src_folder = "./."

My Postgresql is running on Cockroach db serverless.

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

No branches or pull requests

1 participant