Fall back to using pk/ui from orig table if new table del index uses cols that no longer exist in orig table.

This commit is contained in:
Daniel Nichter
2013-01-29 17:51:43 -07:00
parent 9693f73e5e
commit 7ec6abd684
3 changed files with 114 additions and 10 deletions
@@ -0,0 +1,20 @@
drop database if exists test;
create database test;
use test;
CREATE TABLE `t1` (
`id` int(10) unsigned NOT NULL,
`x` char(3) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB;
INSERT INTO t1 VALUES
(1, 'a'),
(2, 'b'),
(3, 'c'),
(4, 'd'),
(5, 'f'),
(6, 'g'),
(7, 'h'),
(8, 'i'),
(9, 'j');