PT-2418 - pt-online-schema-change 3.7.0 lost data when exe alter xxx rename column xxx

- Added instructions to skip the test if server version is less than 8.0
This commit is contained in:
Sveta Smirnova
2025-07-21 18:25:30 +03:00
parent 8f068a9d59
commit 1d0487cf2f

View File

@@ -21,7 +21,9 @@ my $dp = new DSNParser(opts=>$dsn_opts);
my $sb = new Sandbox(basedir => '/tmp', DSNParser => $dp);
my $source_dbh = $sb->get_dbh_for('source');
if ( !$source_dbh ) {
if ($sandbox_version lt '8.0') {
plan skip_all => 'This test needs MySQL 8.0+';
} elsif ( !$source_dbh ) {
plan skip_all => 'Cannot connect to sandbox source';
}