Skip to content

Commit e097988

Browse files
Merge pull request #54 from marksabbath/hotfix/skipped-when-report-changed-only
Do not show on report tables without index when using --report-change-only
2 parents 5db59b4 + 83a3150 commit e097988

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Search_Replace_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public function __invoke( $args, $assoc_args ) {
302302
// since we'll be updating one row at a time,
303303
// we need a primary key to identify the row
304304
if ( empty( $primary_keys ) ) {
305-
if ( $this->report ) {
305+
if ( $this->report && ! $this->report_changed_only ) {
306306
$report[] = array( $table, '', 'skipped', '' );
307307
} else {
308308
WP_CLI::warning( $all_columns ? "No primary keys for table '$table'." : "No such table '$table'." );

0 commit comments

Comments
 (0)