I'm trying to add multiple tables and am managing the migrations with aerich/tortoise.
However, with aerich init-db it only creates one table (in this case first_table).
I deleted all tables including aerich table. I tested by removing first_table and third_table in the modules= and tried to recreate the tables with aerich init-db but it still creates first_table. Also, I can create multiple tables if I don't use aerich (with register_tortoise(generate_schemas=False)). Could someone help me figure this out?
I'm trying to add multiple tables and am managing the migrations with
aerich
/tortoise
.However, with
aerich init-db
it only creates one table (in this casefirst_table
).I have the modules defined as:
I deleted all tables including aerich table. I tested by removing first_table and third_table in the
modules=
and tried to recreate the tables withaerich init-db
but it still creates first_table. Also, I can create multiple tables if I don't use aerich (withregister_tortoise(generate_schemas=False)
). Could someone help me figure this out?