From 17b98f3a6d4ff357229ea97b8dfb75ae9ee1ea8b Mon Sep 17 00:00:00 2001 From: Frank Cizmich Date: Sun, 6 Jul 2014 19:11:54 -0300 Subject: [PATCH] added missing auxiliary files for testing of issue 1315130 --- t/pt-online-schema-change/samples/bug-1315130.sql | 12 ++++++++++++ .../samples/bug-1315130_cleanup.sql | 5 +++++ 2 files changed, 17 insertions(+) create mode 100644 t/pt-online-schema-change/samples/bug-1315130.sql create mode 100644 t/pt-online-schema-change/samples/bug-1315130_cleanup.sql diff --git a/t/pt-online-schema-change/samples/bug-1315130.sql b/t/pt-online-schema-change/samples/bug-1315130.sql new file mode 100644 index 00000000..2bfce43f --- /dev/null +++ b/t/pt-online-schema-change/samples/bug-1315130.sql @@ -0,0 +1,12 @@ +drop database if exists bug_1315130_a; +create database bug_1315130_a; +use bug_1315130_a; +create table parent_table (a int unsigned primary key); +create table child_table_in_same_schema (a int unsigned primary key, constraint a_fk foreign key a_fk (a) references parent_table(a)); +drop database if exists bug_1315130_b; +create database bug_1315130_b; +use bug_1315130_b; +create table child_table_in_second_schema (a int unsigned primary key, constraint a_fk foreign key a_fk (a) references bug_1315130_a.parent_table(a)); +create table parent_table (a int unsigned primary key); +create table bug_1315130_a.child_table_in_same_schema_referencing_second_schema (a int unsigned primary key, constraint a_fk2 foreign key a_fk2 (a) references bug_1315130_b.parent_table(a)); + diff --git a/t/pt-online-schema-change/samples/bug-1315130_cleanup.sql b/t/pt-online-schema-change/samples/bug-1315130_cleanup.sql new file mode 100644 index 00000000..9585cafe --- /dev/null +++ b/t/pt-online-schema-change/samples/bug-1315130_cleanup.sql @@ -0,0 +1,5 @@ +SET FOREIGN_KEY_CHECKS=0; +drop database if exists bug_1315130_a; +drop database if exists bug_1315130_b; +SET FOREIGN_KEY_CHECKS=1; +