From 0d1b6702a7c61384143a55b44d99e0d37c081ef0 Mon Sep 17 00:00:00 2001 From: Jan Prochazka Date: Fri, 13 Sep 2024 15:10:58 +0200 Subject: [PATCH] alter table tests --- integration-tests/__tests__/alter-table.spec.js | 10 +++++++++- integration-tests/engines.js | 5 +++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/integration-tests/__tests__/alter-table.spec.js b/integration-tests/__tests__/alter-table.spec.js index 1b8a020f..bab95d74 100644 --- a/integration-tests/__tests__/alter-table.spec.js +++ b/integration-tests/__tests__/alter-table.spec.js @@ -70,7 +70,15 @@ const TESTED_COLUMNS = ['col_pk', 'col_std', 'col_def', 'col_fk', 'col_ref', 'co // const TESTED_COLUMNS = ['col_ref']; function engines_columns_source() { - return _.flatten(engines.map(engine => TESTED_COLUMNS.map(column => [engine.label, column, engine]))); + return _.flatten( + engines.map(engine => + TESTED_COLUMNS.filter(col => !col.endsWith('_pk') || !engine.skipPkColumnTesting).map(column => [ + engine.label, + column, + engine, + ]) + ) + ); } describe('Alter table', () => { diff --git a/integration-tests/engines.js b/integration-tests/engines.js index 958ee2b9..7e09a5dd 100644 --- a/integration-tests/engines.js +++ b/integration-tests/engines.js @@ -146,13 +146,14 @@ const engines = [ skipIndexes: true, skipNullability: true, skipUnique: true, - skipAutoIncrement:true + skipAutoIncrement: true, + skipPkColumnTesting: true, }, ]; const filterLocal = [ // filter local testing - '-MySQL', + 'MySQL', '-MariaDB', '-PostgreSQL', '-SQL Server',