tortoise / aerich

A database migrations tool for TortoiseORM, ready to production.
https://github.com/tortoise/aerich
Apache License 2.0
825 stars 93 forks source link

init-db freezes #63

Closed Andrexxelles closed 3 years ago

Andrexxelles commented 3 years ago

image

process freezes, if it hangs, it means something has broken and then it will not function normally, if the process is forcibly terminated, it says that old_models was not found, although it was created.

my test-project https://mega.dp.ua/ru/HYmMA9

long2ice commented 3 years ago

Don't use sqlite

Andrexxelles commented 3 years ago

I am using Postgresql how can this be specified? when connecting a db? NOT await Tortoise.init (db_url = 'sqlite: //database.db', modules = {'models': ['models']}) Right await Tortoise.init (db_url = 'postgresqlite: //database.db', modules = {'models': ['models']}) ?

long2ice commented 3 years ago

Fixed in latest dev branch