~percona-toolkit-dev/percona-toolkit/test-for-957442-pqd-custom-filter-group-by

« back to all changes in this revision

Viewing changes to t/pt-online-schema-change/sanity_checks.t

Merge fix-pt-osc-del-trg-bug-1062324.

Show diffs side-by-side

added added

removed removed

Lines of Context:
83
83
);
84
84
$master_dbh->do('DROP TRIGGER pt_osc.pt_osc_test');
85
85
 
86
 
# The orig table must have a pk or unique index so the delete trigger is safe.
 
86
# The new table must have a pk or unique index so the delete trigger is safe.
87
87
$master_dbh->do("ALTER TABLE pt_osc.t DROP COLUMN id");
88
88
$master_dbh->do("ALTER TABLE pt_osc.t DROP INDEX c");
89
89
($output, undef) = full_output(
92
92
);
93
93
 
94
94
like( $output,
95
 
   qr/`pt_osc`.`t` does not have a PRIMARY KEY or a unique index/,
96
 
   "Original table must have a PK or unique index"
 
95
   qr/`pt_osc`.`_t_new` does not have a PRIMARY KEY or a unique index/,
 
96
   "New table must have a PK or unique index"
97
97
);
98
98
 
99
99
# #############################################################################