cockroach fk analyse fix

This commit is contained in:
Jan Prochazka
2021-09-04 21:54:12 +02:00
parent e2ce349a30
commit f4c39bbf3c
6 changed files with 34 additions and 4 deletions

View File

@@ -33,6 +33,10 @@ const postgresDriverBase = {
showConnectionField: (field, values) =>
['server', 'port', 'user', 'password', 'defaultDatabase', 'singleDatabase'].includes(field),
getQuerySplitterOptions: () => postgreSplitterOptions,
__analyserInternals: {
refTableCond: '',
}
};
/** @type {import('dbgate-types').EngineDriver} */
@@ -59,6 +63,9 @@ const cockroachDriver = {
dropColumnDependencies: ['primaryKey'],
dropPrimaryKey: false,
},
__analyserInternals: {
refTableCond: 'and fk.referenced_table_name = ref.table_name',
}
};
/** @type {import('dbgate-types').EngineDriver} */