[PR #8] [MERGED] [BUGFIX] consider fields to ignore when generating new records sql #234

Closed
opened 2026-03-07 20:42:25 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/DBDiff/DBDiff/pull/8
Author: @webian
Created: 5/22/2016
Status: Merged
Merged: 5/22/2016
Merged by: @jasdeepkhalsa

Base: masterHead: master


📝 Commits (1)

  • 224902d [BUGFIX] consider fields to ignore when generating new records sql

📊 Changes

1 file changed (+12 additions, -17 deletions)

View changed files

📝 src/DB/Data/ArrayDiff.php (+12 -17)

📄 Description

Bug: if servers are different and there are fields to ignore, the generated SQL for new records didn't include the ignored fields. This commit fixes this bug unsetting the array element to ignore only when the comparison is made.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/DBDiff/DBDiff/pull/8 **Author:** [@webian](https://github.com/webian) **Created:** 5/22/2016 **Status:** ✅ Merged **Merged:** 5/22/2016 **Merged by:** [@jasdeepkhalsa](https://github.com/jasdeepkhalsa) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`224902d`](https://github.com/DBDiff/DBDiff/commit/224902d37b8507888fee88da9d9c42cd262e02d7) [BUGFIX] consider fields to ignore when generating new records sql ### 📊 Changes **1 file changed** (+12 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `src/DB/Data/ArrayDiff.php` (+12 -17) </details> ### 📄 Description Bug: if servers are different and there are fields to ignore, the generated SQL for new records didn't include the ignored fields. This commit fixes this bug unsetting the array element to ignore only when the comparison is made. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-07 20:42:25 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/DBDiff#234
No description provided.