Skip to content

Commit 3932f95

Browse files
committed
fix
1 parent 879acbb commit 3932f95

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tests/WP_SQLite_Translator_Tests.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -931,6 +931,12 @@ enum_column ENUM('a', 'b', 'c') NOT NULL DEFAULT 'a',
931931
}
932932

933933
public function testAlterTableAddAndDropColumn() {
934+
$is_legacy_sqlite = version_compare( $this->engine->get_sqlite_version(), WP_PDO_MySQL_On_SQLite::MINIMUM_SQLITE_VERSION, '<' );
935+
if ( $is_legacy_sqlite ) {
936+
$this->markTestSkipped( "The old SQLite driver doesn't support DROP column on legacy SQLite versions" );
937+
return;
938+
}
939+
934940
$result = $this->assertQuery(
935941
"CREATE TABLE _tmp_table (
936942
name varchar(20) NOT NULL default ''

0 commit comments

Comments
 (0)