Bug #50265 | A better foreign key selector | ||
---|---|---|---|
Submitted: | 12 Jan 2010 5:33 | Modified: | 14 Jan 2010 5:56 |
Reporter: | hamza hamza | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Workbench | Severity: | S4 (Feature request) |
Version: | 5.1.18 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[12 Jan 2010 5:33]
hamza hamza
[12 Jan 2010 15:02]
Johannes Taxacher
currently, you should be able to select both name from a dropdown control. on Foreign-Key-Tab, enter the FK-name, then select the target-table (as you already mentioned). once you seelcted the target-table, you can activate the checkmark in the column-list on the same tab and select a corresponding column from the dropdown next to the source column. Be aware that both columns need to be of exact same type (including the type-flags), otherwise WB will refuse to link the columns into the key. could you try to describe how you would like workbench to behave?.
[12 Jan 2010 20:32]
hamza hamza
you said "on Foreign-Key-Tab, enter the FK-name" why we need to type at all? this is the question a foreign key is a reference from table1.column1 to table2.column2, every thing is known for the program , the user already designed those tables , and type "enter" all these informations(names). why he will need to enter FK-name again from the keyboard. 1-select the referenced table2 from a list 2-select the referenced column2 from a list (this will make our experience much easier) 3-the rest is the same as you mentioned
[14 Jan 2010 5:56]
Susanne Ebrecht
You don't need to type the name you just need to click into the blanc field. The name will be given by automatism. Every constraint needs to have a name. That is given by SQL Standard. If you don't ive a name then the system (either Workbench or the server) will name it randomly. But there are some usecases for which a user needs to set his own names.