mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-21 03:14:58 +00:00
Add lib/, t/lib/, and sandbox/. All modules are updated and passing on MySQL 5.1.
This commit is contained in:
8
t/lib/samples/dupekeys/issue-1004.txt
Normal file
8
t/lib/samples/dupekeys/issue-1004.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
CREATE TABLE `r_def_r_sk` (
|
||||
`r_def_id` bigint(20) NOT NULL,
|
||||
`skFoo_id` bigint(20) NOT NULL,
|
||||
UNIQUE KEY `skFoo_id` (`skFoo_id`),
|
||||
KEY `FK6421479DB0C79C87` (`r_def_id`),
|
||||
CONSTRAINT `FK6421479D19872119` FOREIGN KEY (`skFoo_id`) REFERENCES `r_sk` (`id`),
|
||||
CONSTRAINT `FK6421479DB0C79C87` FOREIGN KEY (`r_def_id`) REFERENCES `r_def` (`id`)
|
||||
) ENGINE=InnoDB
|
7
t/lib/samples/dupekeys/issue-1192.sql
Normal file
7
t/lib/samples/dupekeys/issue-1192.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
CREATE TABLE `issue_1192` (
|
||||
`a` int(11) NOT NULL DEFAULT '0',
|
||||
`B` int(11) DEFAULT NULL,
|
||||
PRIMARY KEY (`a`),
|
||||
KEY `a` (`a`),
|
||||
KEY `B` (`B`)
|
||||
) ENGINE=InnoDB;
|
15
t/lib/samples/dupekeys/issue-904-1.txt
Normal file
15
t/lib/samples/dupekeys/issue-904-1.txt
Normal file
@@ -0,0 +1,15 @@
|
||||
CREATE TABLE `gpu` (
|
||||
`g_id` bigint(20) unsigned NOT NULL,
|
||||
`p_id` bigint(20) unsigned NOT NULL,
|
||||
`date_added` int(10) unsigned NOT NULL,
|
||||
`p_o_id` bigint(20) unsigned NOT NULL,
|
||||
`g_o_id` bigint(20) unsigned NOT NULL,
|
||||
`in_order` tinyint(3) unsigned NOT NULL,
|
||||
`date_update` int(10) unsigned NOT NULL,
|
||||
`comment` text collate utf8_unicode_ci NOT NULL,
|
||||
`is_v` tinyint(3) unsigned NOT NULL,
|
||||
UNIQUE KEY `by_p_id` (`p_id`,`g_id`),
|
||||
KEY `by_p_o` (`p_o_id`,`g_id`),
|
||||
KEY `by_activity` (`p_id`,`date_added`),
|
||||
KEY `by_count` (`p_o_id`,`is_v`,`p_id`)
|
||||
) ENGINE=InnoDB
|
13
t/lib/samples/dupekeys/issue-904-2.txt
Normal file
13
t/lib/samples/dupekeys/issue-904-2.txt
Normal file
@@ -0,0 +1,13 @@
|
||||
CREATE TABLE `ppui` (
|
||||
`p_id` bigint(20) unsigned NOT NULL,
|
||||
`o_id` int(20) unsigned NOT NULL,
|
||||
`n_id` int(20) unsigned NOT NULL,
|
||||
`added_by_id` int(20) unsigned NOT NULL,
|
||||
`date_create` int(10) unsigned NOT NULL,
|
||||
`p_perms` tinyint(3) NOT NULL default '0',
|
||||
PRIMARY KEY (`p_id`,`n_id`),
|
||||
KEY `tag_by_id` (`added_by_id`,`n_id`),
|
||||
KEY `person_id` (`n_id`,`p_perms`,`date_create`),
|
||||
KEY `date_create` (`date_create`),
|
||||
KEY `o_id` (`o_id`,`p_id`)
|
||||
) ENGINE=InnoDB
|
Reference in New Issue
Block a user