Bug #89958 Bad export generated by Workbench: ALTER TABLE for UNIQUE KEY
| Submitted: | 8 Mar 2018 10:02 | Modified: | 13 Mar 2018 8:04 |
|---|---|---|---|
| Reporter: | Terje Rosenlund | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Workbench | Severity: | S3 (Non-critical) |
| Version: | 5.7.21-0ubuntu0.16.04.1 | OS: | Windows (Server 2012 R2 Datacenter) |
| Assigned to: | CPU Architecture: | x86 (x64) | |
| Tags: | ALTER TABLE, export, unique key | ||
[8 Mar 2018 10:02]
Terje Rosenlund
[8 Mar 2018 11:02]
Terje Rosenlund
The complete schema posted was from PhpMyadmin, also posting the original export from Workbench -- -- Table structure for table `ao_587b34_project_config` -- DROP TABLE IF EXISTS `ao_587b34_project_config`; CREATE TABLE IF NOT EXISTS `ao_587b34_project_config` ( `CONFIGURATION_GROUP_ID` varchar(255) COLLATE utf8_bin NOT NULL, `ID` int(11) NOT NULL, `NAME` varchar(255) COLLATE utf8_bin DEFAULT NULL, `NAME_UNIQUE_CONSTRAINT` varchar(255) COLLATE utf8_bin NOT NULL, `PROJECT_ID` bigint(20) NOT NULL DEFAULT '0', `ROOM_ID` bigint(20) NOT NULL DEFAULT '0', `VALUE` varchar(255) COLLATE utf8_bin DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin; -- -- Indexes for table `ao_587b34_project_config` -- ALTER TABLE `ao_587b34_project_config` ADD PRIMARY KEY (`ID`), ADD KEY `index_ao_587b34_pro2115480362` (`NAME`), ADD KEY `index_ao_587b34_pro1732672724` (`ROOM_ID`), ADD KEY `index_ao_587b34_pro2093917684` (`PROJECT_ID`), ADD KEY `index_ao_587b34_pro193829489` (`CONFIGURATION_GROUP_ID`); -- AUTO_INCREMENT for table `ao_587b34_project_config` -- ALTER TABLE `ao_587b34_project_config` MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT; -- Constraints for table `ao_587b34_project_config` -- ALTER TABLE `ao_587b34_project_config` UNIQUE KEY `U_AO_587B34_PROJECT2070954277` (`NAME_UNIQUE_ADD CONSTRAINT`),;
[13 Mar 2018 8:04]
Chiranjeevi Battula
Hello Terje Rosenlund, Thank you for the bug report. I could not repeat the issue at our end using with MySQL workbench 6.3.10 version with MySQL 5.7.21 and 5.6.39 versions. If you can provide more information, feel free to add it to this bug and change the status back to 'Open'. Thank you for your interest in MySQL. Thanks, Chiranjeevi.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.053 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.