Skip to content

The report prints a message when the table's primary key isn't found #53

@LC43

Description

@LC43

Currently, when doing a search and replace with --report-changed-only, if the table has no primary key, it still prints the name of the table and the string 'skipped'.

It should only add to report when this flag isn't present.

example:

wp search-replace 'aaaaaaaaa' 'bbbbbbb' --report-changed-only --url="example.com" --network

will print:

+------------+--------+--------------+------+
| Table      | Column | Replacements | Type |
+------------+--------+--------------+------+
| wp_example |        | skipped      |      |
+------------+--------+--------------+------+

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions