mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 00:46:01 +00:00
db syn logical fix
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
}
|
||||
|
||||
if (objectTypeField == 'tables') {
|
||||
return getAlterTableScript(oldObject, newObject, opts, db, driver);
|
||||
return getAlterTableScript(oldObject, newObject, opts, db, db, driver);
|
||||
}
|
||||
const dmp = driver.createDumper();
|
||||
if (oldObject) dmp.dropSqlObject(oldObject);
|
||||
@@ -280,7 +280,7 @@
|
||||
function getDeploySql() {
|
||||
return diffRows
|
||||
.filter(row => $values[`isChecked_${row.identifier}`])
|
||||
.map(row => getAlterTableScript(row?.target, row?.source, dbDiffOptions, targetDb, driver).sql)
|
||||
.map(row => getAlterTableScript(row?.target, row?.source, dbDiffOptions, sourceDb, targetDb, driver).sql)
|
||||
.join('\n');
|
||||
}
|
||||
|
||||
|
||||
@@ -115,6 +115,7 @@
|
||||
extendTableInfo(fillConstraintNames($editorValue.current, driver.dialect)),
|
||||
{},
|
||||
$dbInfo,
|
||||
$dbInfo,
|
||||
driver
|
||||
);
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ export async function alterDatabaseDialog(conid, database, updateFunc) {
|
||||
const dbUpdated = _.cloneDeep(db);
|
||||
updateFunc(dbUpdated);
|
||||
|
||||
const { sql, recreates } = getAlterDatabaseScript(db, dbUpdated, {}, db, driver);
|
||||
const { sql, recreates } = getAlterDatabaseScript(db, dbUpdated, {}, db, dbUpdated, driver);
|
||||
|
||||
showModal(ConfirmSqlModal, {
|
||||
sql,
|
||||
|
||||
Reference in New Issue
Block a user