tortoise / aerich

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

sql migrations in new version of aerich #297

Open ivictor777 opened 1 year ago

ivictor777 commented 1 year ago

Could you add support for old .sql migrations for backwards compatibility? I have a problem with migrations in relation to this and I can't run migrations from an old version of aerich.

ivictor777 commented 1 year ago

Solved the problem like this (maybe someone will need a solution): I did manual migrations by running sql queries directly. And further, as it is written in the documentation: drop aerich table. delete migrations/{app} directory. rerun aerich init-db.