Disable Primary key columns in table/column UI
See original GitHub issueSeparate the model that holds table information from database (TableModel
) from the model used to serialize table information to efpt.config.json file by introducing a SerializationTableModel
, and use that in the ReverseEngineerOptions class.
So not:
public List<TableModel> Tables { get; set; }
But:
public List<SerializationTableModel> Tables { get; set; }
In ReverseEngineerOptions class.
Change the columns property in the TableModel class from list of string to a list of ColumnModel which is a class that contains the name and a bool specifying if it’s a primary key column. This class and can be easily extended to add other information in the future.
Use information from the updated TableModel to disable primary key nodes in the UI.
No worries about the breaking nature of this at this point in time.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Change primary key column in SQL Server
Assuming that your current primary key constraint is called pk_history, you can replace the following lines: ALTER TABLE history ADD PRIMARY ...
Read more >Primary Key Constraint
The PRIMARY KEY constraint specifies that the constrained columns' values must uniquely identify each row. A table can only have one primary key, ......
Read more >Change Primary Key Column in SQL Server
We can drop this primary key by using the CONSTRAINT_NAME mentioned in the image. From here copy CONSTRAINT_NAME to drop the primary key....
Read more >MySQL Primary Key: CREATE and ALTER TABLE ...
A primary key column must contain unique values. ... To remove Primary Key from a table, you can use the ALTER TABLE statement....
Read more >Primary keys | DataGrip Documentation
A table can have only one primary key, and this primary key can consist of single or multiple columns. When a primary key...
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
Hold your horses! I am working on the TableModel part as we speak!
Yes, just go ahead and do that. Good luck with your presentation!