mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 12:13:57 +00:00
alter table tests
This commit is contained in:
parent
b366a7d451
commit
0d1b6702a7
@ -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', () => {
|
||||
|
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user