Open saintlyzero opened 3 years ago
@long2ice is this supported? or is it yet to be implemented?
It should be supported yet, maybe bugs there.
Okay, I'll check it out. Thanks :+1:
Hello. In this case, the error is reproduced precisely with the migrate command, if you delete all migrations and run aerich init-db, intermediate table will be created
@MaboUhha your suggestion might work, but I'll lose all of my existing migration files.
it works if I delete all my migrations and do aerich init-db
again, but this isn't really optimal
I have these models
Event
andTeam
with aManyToManyRelation
specified viaevent_team
.When I run
aerich migrate
, schemas for the tableevent
andteam
are generated, however, there's no schema being generated forevent_team
.The only way I could autogenerate table
event_team
is by settinggenerate_schemas=True
inregister_tortoise()
Is there any other way I could get the schema of the intermediate table for ManyToManyRelation by aerich?