mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 15:43:59 +00:00
alter table tests
This commit is contained in:
@@ -70,7 +70,15 @@ const TESTED_COLUMNS = ['col_pk', 'col_std', 'col_def', 'col_fk', 'col_ref', 'co
|
|||||||
// const TESTED_COLUMNS = ['col_ref'];
|
// const TESTED_COLUMNS = ['col_ref'];
|
||||||
|
|
||||||
function engines_columns_source() {
|
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', () => {
|
describe('Alter table', () => {
|
||||||
|
|||||||
@@ -146,13 +146,14 @@ const engines = [
|
|||||||
skipIndexes: true,
|
skipIndexes: true,
|
||||||
skipNullability: true,
|
skipNullability: true,
|
||||||
skipUnique: true,
|
skipUnique: true,
|
||||||
skipAutoIncrement:true
|
skipAutoIncrement: true,
|
||||||
|
skipPkColumnTesting: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const filterLocal = [
|
const filterLocal = [
|
||||||
// filter local testing
|
// filter local testing
|
||||||
'-MySQL',
|
'MySQL',
|
||||||
'-MariaDB',
|
'-MariaDB',
|
||||||
'-PostgreSQL',
|
'-PostgreSQL',
|
||||||
'-SQL Server',
|
'-SQL Server',
|
||||||
|
|||||||
Reference in New Issue
Block a user