Bug #36552 Forward Engineer SQL ALTER Script recreates indexes and columns
| Submitted: | 7 May 2008 9:06 | Modified: | 30 Jun 2008 17:52 |
|---|---|---|---|
| Reporter: | Daniel Haas | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Workbench | Severity: | S3 (Non-critical) |
| Version: | 5.0.21 | OS: | Windows (Vista) |
| Assigned to: | CPU Architecture: | Any |
[7 May 2008 9:06]
Daniel Haas
[30 Jun 2008 17:52]
MySQL Verification Team
Thank you for the bug report. I can't repeat with version 5.0.23 could you please upgrade and try again. Thanks in advance.
[16 Oct 2008 15:00]
Voldemar Vologodsky
The same with foreign keys, version 5.0.26 OSS Part of input script (generated by MySQL Administrator 1.2.12): -- -- Definition of table `admin_msg` -- DROP TABLE IF EXISTS `admin_msg`; CREATE TABLE `admin_msg` ( `id` int(11) NOT NULL auto_increment, `creation_date` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP, `msg` text, `sender_email` varchar(100) default NULL, `source_url` varchar(100) default NULL, `unread` tinyint(1) default '1', `user_id` int(11) default NULL, `admin_msg_type_id` int(11) NOT NULL, PRIMARY KEY (`id`), KEY `fk_admin_msg_user` (`user_id`), KEY `fk_admin_msg_admin_msg_type` (`admin_msg_type_id`), CONSTRAINT `fk_admin_msg_admin_msg_type` FOREIGN KEY (`admin_msg_type_id`) REFERENCES `admin_msg_type` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION, CONSTRAINT `fk_admin_msg_user` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`) ON DELETE NO ACTION ON UPDATE NO ACTION ) ENGINE=InnoDB DEFAULT CHARSET=utf8; Part of generated alter script: ALTER TABLE `myscheme`.`admin_msg` DROP FOREIGN KEY `fk_admin_msg_admin_msg_type` , DROP FOREIGN KEY `fk_admin_msg_user` ; ALTER TABLE `myscheme`.`admin_msg` ADD CONSTRAINT `fk_admin_msg_admin_msg_type` FOREIGN KEY (`admin_msg_type_id` ) REFERENCES `myscheme`.`admin_msg_type` (`id` ) ON DELETE NO ACTION ON UPDATE NO ACTION, ADD CONSTRAINT `fk_admin_msg_user` FOREIGN KEY (`user_id` ) REFERENCES `localratings`.`user` (`id` ) ON DELETE NO ACTION ON UPDATE NO ACTION;
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.