mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-23 21:56:00 +00:00
use default target schema in dbDeploy
This commit is contained in:
@@ -52,7 +52,10 @@ async function generateDeploySql({
|
|||||||
dbdiffOptionsExtra?.['schemaMode'] !== 'ignore' &&
|
dbdiffOptionsExtra?.['schemaMode'] !== 'ignore' &&
|
||||||
dbdiffOptionsExtra?.['schemaMode'] !== 'ignoreImplicit'
|
dbdiffOptionsExtra?.['schemaMode'] !== 'ignoreImplicit'
|
||||||
) {
|
) {
|
||||||
throw new Error('targetSchema is required for databases with multiple schemas');
|
if (!driver?.dialect?.defaultSchemaName) {
|
||||||
|
throw new Error('targetSchema is required for databases with multiple schemas');
|
||||||
|
}
|
||||||
|
targetSchema = driver.dialect.defaultSchemaName;
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user