mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-01 16:43:59 +00:00
fix
This commit is contained in:
@@ -30,6 +30,14 @@ async function generateDeploySql({
|
|||||||
if (!driver) driver = requireEngineDriver(connection);
|
if (!driver) driver = requireEngineDriver(connection);
|
||||||
|
|
||||||
const dbhan = systemConnection || (await connectUtility(driver, connection, 'read'));
|
const dbhan = systemConnection || (await connectUtility(driver, connection, 'read'));
|
||||||
|
if (
|
||||||
|
driver?.dialect?.multipleSchema &&
|
||||||
|
!targetSchema &&
|
||||||
|
dbdiffOptionsExtra?.['schemaMode'] !== 'ignore' &&
|
||||||
|
dbdiffOptionsExtra?.['schemaMode'] !== 'ignoreImplicit'
|
||||||
|
) {
|
||||||
|
throw new Error('targetSchema is required for databases with multiple schemas');
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (!analysedStructure) {
|
if (!analysedStructure) {
|
||||||
|
|||||||
Reference in New Issue
Block a user