mirror of
https://github.com/MariaDB/server.git
synced 2025-01-27 09:14:17 +01:00
22 lines
784 B
Text
22 lines
784 B
Text
--- main/alter_table_combinations.result
|
|
+++ main/alter_table_combinations.reject
|
|
@@ -173,8 +173,7 @@
|
|
t3 CREATE TABLE `t3` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`b` int(11) DEFAULT NULL,
|
|
- KEY `b` (`b`),
|
|
- CONSTRAINT `t3_ibfk_1` FOREIGN KEY (`b`) REFERENCES `t1` (`bb`)
|
|
+ KEY `b` (`b`)
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
|
ALTER TABLE t1 RENAME COLUMN bb TO b;
|
|
SHOW CREATE TABLE t1;
|
|
@@ -190,8 +189,7 @@
|
|
t3 CREATE TABLE `t3` (
|
|
`a` int(11) DEFAULT NULL,
|
|
`c` int(11) DEFAULT NULL,
|
|
- KEY `b` (`c`),
|
|
- CONSTRAINT `t3_ibfk_1` FOREIGN KEY (`c`) REFERENCES `t1` (`b`)
|
|
+ KEY `b` (`c`)
|
|
) ENGINE=DEFAULT_ENGINE DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci
|
|
CREATE TABLE t4(a int);
|
|
ALTER TABLE t4 RENAME COLUMN a TO aa, ALGORITHM = INPLACE;
|