Bug #34226 wrong undo when used "pick columns"
Submitted: 1 Feb 2008 13:29 Modified: 5 Feb 2008 15:49
Reporter: Johannes Taxacher Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.0.12 beta OS:Windows
Assigned to: Alfredo Kojima CPU Architecture:Any

[1 Feb 2008 13:29] Johannes Taxacher
Description:
When creating a relation between 2 tables using the relationship-tool and the "pick columns" feature on existing columns a following undo of the "create relationship" will remove the column also.

How to repeat:
- create two tables (go with the defaults and create at least the INT-PK-col for each table)
- select the relationship tool (just use the topmost)
- activate the pick columns feature in the toolbar
- pick idtable1 as first column
- push the "pick referenced column"-button in the black helper object
- pick the idtable2 column as referenced column
- use the undo-function (menu or Ctrl-Z)

now the column idtable1 is gone with the relation

Suggested fix:
don't delete the column on undo when this was created with the "pick columns"-feature
[5 Feb 2008 15:49] Johannes Taxacher
checked again, works now as proposed (5.0.12 SVN Rev 2515)