mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-05-03 11:43:57 +00:00
fixed diff for triggers
This commit is contained in:
@@ -715,7 +715,7 @@ export function createAlterDatabasePlan(
|
|||||||
): AlterPlan {
|
): AlterPlan {
|
||||||
const plan = new AlterPlan(wholeOldDb, wholeNewDb, driver.dialect, opts);
|
const plan = new AlterPlan(wholeOldDb, wholeNewDb, driver.dialect, opts);
|
||||||
|
|
||||||
for (const objectTypeField of ['tables', 'views', 'procedures', 'matviews', 'functions']) {
|
for (const objectTypeField of ['tables', 'views', 'procedures', 'matviews', 'functions', 'triggers']) {
|
||||||
for (const oldobj of oldDb[objectTypeField] || []) {
|
for (const oldobj of oldDb[objectTypeField] || []) {
|
||||||
const newobj = (newDb[objectTypeField] || []).find(x => x.pairingId == oldobj.pairingId);
|
const newobj = (newDb[objectTypeField] || []).find(x => x.pairingId == oldobj.pairingId);
|
||||||
if (objectTypeField == 'tables') {
|
if (objectTypeField == 'tables') {
|
||||||
|
|||||||
Reference in New Issue
Block a user