PR-989 - Fix script crashing with precedence error

- Fixed typo in the tool code
- Added more diagnostic information into test for pt-1919
This commit is contained in:
Sveta Smirnova
2025-08-13 17:03:29 +03:00
parent 58cebefdcc
commit 82a2ac7a40
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -10630,7 +10630,7 @@ sub main {
$plugin->after_copy_rows();
}
if ( $o->get('preserve-triggers') ) {
if ( !$o->get('swap-tables') && $o->get('drop-new-table') && $o->get('alter-foreign-keys-method') ne "drop-swap" ) {
if ( !$o->get('swap-tables') && $o->get('drop-new-table') && ( $o->get('alter-foreign-keys-method') ne "drop_swap" ) ) {
print ts("Skipping triggers creation since --no-swap-tables was specified along with --drop-new-table\n");
} else {
print ts("Adding original triggers to new table.\n");
+1 -1
View File
@@ -312,7 +312,7 @@ sub test_alter_table {
$orig_triggers,
$new_triggers,
'Triggers should remain in place',
);
) or diag($output);
return;
}