I want to change order of table creation for create_tables() #1076
Closed
Description
Basically, I need to make Peewee know that some of my tables are inherited from other tables, and this means that the «parents» should be created before «children».
Can you please move some logic out from sort_models_topologically()
, so that I could override it in my classes and customize list of a table's dependencies (which now includes only those tables to which it has foreign keys referencing)? Or, could you make support for inheritance in Peewee natively?
Metadata
Assignees
Labels
No labels