I want to change order of table creation for create_tables()
See original GitHub issueBasically, 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?
Issue Analytics
- State:
- Created 7 years ago
- Comments:21 (21 by maintainers)
Top Results From Across the Web
Create and format tables - Microsoft Support
To format existing data as a table by using the default table style, do this: Select the cells containing the data. Click Home...
Read more >createTable | Liquibase Docs
To create a table for your database, follow these steps: Step 1: Add the createTable Change Type to your changeset with the needed...
Read more >CreateTable - Amazon DynamoDB - AWS Documentation
In an AWS account, table names must be unique within each Region. That is, you can have two tables with same name if...
Read more >Chapter 4. Creating Databases and Tables - O'Reilly
Creating Databases and Tables In order to be able to add and manipulate data, you first have to create a database. There's not...
Read more >Documentation: 15: CREATE TABLE - PostgreSQL
Therefore, tables cannot have the same name as any existing data type in the same schema. The optional constraint clauses specify constraints (tests)...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Not on pip yet, but next release will be soon… I’ll shoot for within the next few days
Please check this, it seems to fix the problem. By the way, I got rid of the
reversed(reversed())
style of the sorting process because it made harder to understand what’s going on.