Bug #49987 | "Skip Creation of FOREIGN KEYS" should exclude FOREIGN indexes | ||
---|---|---|---|
Submitted: | 30 Dec 2009 8:10 | Modified: | 23 Mar 2010 17:52 |
Reporter: | Kelsey Prantis | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench | Severity: | S3 (Non-critical) |
Version: | 5.1.8, 5.2.11 | OS: | Windows (XP) |
Assigned to: | Alexander Musienko | CPU Architecture: | Any |
Tags: | forward engineering |
[30 Dec 2009 8:10]
Kelsey Prantis
[5 Jan 2010 10:48]
Valeriy Kravchuk
With 5.2.11 on Windows XP "Skip Creation of FOREIGN KEYS" does NOT work at all in Export/Forward Engineer SQL CREATE Script..., for example. Not only indexes, but foreign keys are still created.
[18 Feb 2010 5:59]
Susanne Ebrecht
Triage: We need to discuss this.
[28 Feb 2010 1:51]
Jed Brubaker
Adding a comment to let you know that I am seeing the same (or similar) error on 5.2.11/Mac. Example output: CREATE TABLE IF NOT EXISTS `tempdb`.`comment` ( `id` INT NOT NULL AUTO_INCREMENT , `date` DATETIME NULL , `message` TEXT NULL , `account_id` INT NOT NULL , `profile_id` INT NOT NULL , `added` DATETIME NULL , PRIMARY KEY (`id`) , INDEX `fk_comment_friend1` (`account_id` ASC) , INDEX `fk_comment_profile1` (`profile_id` ASC) , CONSTRAINT `fk_comment_friend1` FOREIGN KEY (`account_id` ) REFERENCES `myspace`.`account` (`id` ) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_comment_profile1` FOREIGN KEY (`profile_id` ) REFERENCES `myspace`.`profile` (`id` ) ON DELETE NO ACTION ON UPDATE NO ACTION) ENGINE = InnoDB;
[23 Mar 2010 15:47]
Johannes Taxacher
indexes, specified as FOREIGN (thats what WB sets automatically created indexes for FK columns) are now skipped along with the keys when "Skip creation of FOREIGN KEYS" is checked. fixed in repository
[23 Mar 2010 17:52]
Tony Bedford
An entry has been added to the 5.2.17 changelog: When a schema with Foreign keys and associated automatically generated foreign indexes was exported with the Skip Creation of FOREIGN KEYS checkbox selected, the generated script still contained the indexes.