-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
Hi.
It seems the order of tables with relations is wrong.
For instance, it's trying to do:
DROP TABLE "payer";
DROP TABLE "transaction";
for the following models:
class Payer(BaseModel):
pass
class Transaction(BaseModel):
payer = ForeignKeyField(Payer, backref="transactions")
(which were deleted from the code)
Actually, it seems random, because a subsequent run was in the right order:
DROP TABLE "transaction";
DROP TABLE "payer";
So, I guess the tool does not check for relations in the database tables.
Thanks to fix this.
Metadata
Metadata
Assignees
Labels
No labels