Closed neo-f closed 2 years ago
additional, tortoise-orm generate schema feature does works
Hey @captain-neo ! I'm having the same issue. Have you found a solution? Thanks
@long2ice To put some more context, the issue happens when aerich saves the app information to aerich table JSONField. Is because that it works when the schema is generated by Tortoise but not when using aerich.
If we commented out the aerich.__init__
line 130 it solves the issue related to JSON serialization and the SQL migration file is generated.
Thanks, @long2ice for https://github.com/tortoise/aerich/commit/f15cbaf9e0269fca88741fae135bc7952fafd444 When can we have a release with these changes? Thanks again :+1:
Just try it
我都忘了提过这个issue了,哈哈,辛苦。
@long2ice it works well. I tested the upgrade
and downgrade
commands and both went well. Nice work. Thanks!
OK, I will release it in proper time
version: 0.5.8
while using the
tortoise.indexes.Index
based index class,migration doesn't work at all ex:when
aerich init-db