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

`aerich upgrade` on empty does not work in 0.7.1 #273

Open jes5e opened 1 year ago

jes5e commented 1 year ago

With version 0.6.3 I am able to clone my project, create an empty db, and then run poetry run aerich upgrade, and all works like it should: the aerich table gets created along with all the tables for my models.

After updating to version 0.7.1, when I run that command on an empty db, I get this message: "No upgrade items found".

Downgrading to 0.6.3 fixes the issue.

exherb commented 1 year ago

some issue here

freakaton commented 1 year ago

@jes5e that's because they moved from .sql migrations to .py and broke migrations, that was generated in <0.7.0 ver.

https://github.com/tortoise/aerich/blob/dev/CHANGELOG.md#070