alter table tests

This commit is contained in:
Jan Prochazka 2024-09-13 15:10:58 +02:00
parent b366a7d451
commit 0d1b6702a7
2 changed files with 12 additions and 3 deletions

View File

@ -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', () => {

View File

@ -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',