mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 04:00:59 +00:00
fix
This commit is contained in:
parent
724edf44cb
commit
f6f9b0a61a
@ -347,7 +347,7 @@ export function testEqualColumns(
|
||||
}
|
||||
|
||||
function testEqualConstraints(a: ConstraintInfo, b: ConstraintInfo, opts: DbDiffOptions = {}) {
|
||||
const omitList = [];
|
||||
const omitList = ['pairingId'];
|
||||
if (opts.ignoreForeignKeyActions) {
|
||||
omitList.push('updateAction');
|
||||
omitList.push('deleteAction');
|
||||
@ -375,7 +375,10 @@ function testEqualConstraints(a: ConstraintInfo, b: ConstraintInfo, opts: DbDiff
|
||||
// console.log('IX2', stableStringify(_omit(b, omitList)));
|
||||
// }
|
||||
|
||||
return stableStringify(_omit(a, omitList)) == stableStringify(_omit(b, omitList));
|
||||
const aStringified = stableStringify(_omit(a, omitList));
|
||||
const bStringified = stableStringify(_omit(b, omitList));
|
||||
|
||||
return aStringified == bStringified;
|
||||
}
|
||||
|
||||
export function testEqualTypes(a: ColumnInfo, b: ColumnInfo, opts: DbDiffOptions = {}) {
|
||||
|
Loading…
Reference in New Issue
Block a user