Skip to content

Commit 67ed6f3

Browse files
committed
More fix tests.
1 parent a7e6f2b commit 67ed6f3

File tree

1 file changed

+20
-18
lines changed

1 file changed

+20
-18
lines changed

tests/framework/db/mysql/SchemaTest.php

Lines changed: 20 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -306,24 +306,26 @@ public function getExpectedColumns()
306306
]
307307
);
308308

309-
$columns['int_col']['dbType'] = 'int';
310-
$columns['int_col']['size'] = null;
311-
$columns['int_col']['precision'] = null;
312-
$columns['int_col2']['dbType'] = 'int';
313-
$columns['int_col2']['size'] = null;
314-
$columns['int_col2']['precision'] = null;
315-
$columns['int_col3']['dbType'] = 'int unsigned';
316-
$columns['int_col3']['size'] = null;
317-
$columns['int_col3']['precision'] = null;
318-
$columns['tinyint_col']['dbType'] = 'tinyint';
319-
$columns['tinyint_col']['size'] = null;
320-
$columns['tinyint_col']['precision'] = null;
321-
$columns['smallint_col']['dbType'] = 'smallint';
322-
$columns['smallint_col']['size'] = null;
323-
$columns['smallint_col']['precision'] = null;
324-
$columns['bigint_col']['dbType'] = 'bigint unsigned';
325-
$columns['bigint_col']['size'] = null;
326-
$columns['bigint_col']['precision'] = null;
309+
if (\version_compare($version, '8.0.17', '>') && \stripos($version, 'MariaDb') === false) {
310+
$columns['int_col']['dbType'] = 'int';
311+
$columns['int_col']['size'] = null;
312+
$columns['int_col']['precision'] = null;
313+
$columns['int_col2']['dbType'] = 'int';
314+
$columns['int_col2']['size'] = null;
315+
$columns['int_col2']['precision'] = null;
316+
$columns['int_col3']['dbType'] = 'int unsigned';
317+
$columns['int_col3']['size'] = null;
318+
$columns['int_col3']['precision'] = null;
319+
$columns['tinyint_col']['dbType'] = 'tinyint';
320+
$columns['tinyint_col']['size'] = null;
321+
$columns['tinyint_col']['precision'] = null;
322+
$columns['smallint_col']['dbType'] = 'smallint';
323+
$columns['smallint_col']['size'] = null;
324+
$columns['smallint_col']['precision'] = null;
325+
$columns['bigint_col']['dbType'] = 'bigint unsigned';
326+
$columns['bigint_col']['size'] = null;
327+
$columns['bigint_col']['precision'] = null;
328+
}
327329

328330
return $columns;
329331
}

0 commit comments

Comments
 (0)