[GH-ISSUE #51] fieldsToIgnore not working #174

Open
opened 2026-03-07 20:41:49 +03:00 by kerem · 5 comments
Owner

Originally created by @loonies on GitHub (Jun 12, 2017).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/51

DBDiff version: commit c001e9f

.dbdiff file:

server1:
    ...
server2:
    ...
type: schema
include: all
nocomments: true
fieldsToIgnore:
    table_name:
        - field_name

Run with:

./vendor/dbdiff/dbdiff/dbdiff "server1.db_from:server2.db_to" --output="./migration.sql"

The ignored column field_name is still included in the migration file.

Originally created by @loonies on GitHub (Jun 12, 2017). Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/51 DBDiff version: commit `c001e9f` `.dbdiff` file: ``` server1: ... server2: ... type: schema include: all nocomments: true fieldsToIgnore: table_name: - field_name ``` Run with: ``` ./vendor/dbdiff/dbdiff/dbdiff "server1.db_from:server2.db_to" --output="./migration.sql" ``` The ignored column `field_name` is still included in the migration file.
Author
Owner

@jasdeepkhalsa commented on GitHub (Nov 24, 2017):

Hi @loonies,

Could you please post the two databases you're comparing please?

Also please post any errors / output you're seeing on the command-line.

Thanks!

<!-- gh-comment-id:346851861 --> @jasdeepkhalsa commented on GitHub (Nov 24, 2017): Hi @loonies, Could you please post the two databases you're comparing please? Also please post any errors / output you're seeing on the command-line. Thanks!
Author
Owner

@akkzb commented on GitHub (Dec 17, 2019):

not working

<!-- gh-comment-id:566533196 --> @akkzb commented on GitHub (Dec 17, 2019): not working
Author
Owner

@nosedrum commented on GitHub (Dec 18, 2019):

Same here, fieldsToIgnore section has no effect...

<!-- gh-comment-id:566950009 --> @nosedrum commented on GitHub (Dec 18, 2019): Same here, fieldsToIgnore section has no effect...
Author
Owner

@akkzb commented on GitHub (Dec 18, 2019):

it's working, just comment include: all

<!-- gh-comment-id:566954274 --> @akkzb commented on GitHub (Dec 18, 2019): it's working, just comment include: all
Author
Owner

@nosedrum commented on GitHub (Dec 18, 2019):

Not for me, with or xithout include: all in .dbdiff, all fields specified in fieldsToIgnore just appear in ALTER TABLE roders in migration file.
I'm using latest dbdiff vers.

<!-- gh-comment-id:566972813 --> @nosedrum commented on GitHub (Dec 18, 2019): Not for me, with or xithout include: all in .dbdiff, all fields specified in fieldsToIgnore just appear in ALTER TABLE roders in migration file. I'm using latest dbdiff vers.
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#174
No description provided.