DEV: Less verbose remapping

It's hard to see which columns have been remapped when remapping prints
lots of "0 rows affected" lines. This changes it to output the row count
only for affected columns.
This commit is contained in:
Gerhard Schlager 2019-07-09 13:45:08 +02:00
parent f2dc59d61f
commit 5ffb722999
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ WHERE table_schema='public' and (data_type like 'char%' or data_type like 'text%
AND #{column_name} <> replace(#{column_name}, $1, $2)", [@from, @to])
end
log "#{result.cmd_tuples} rows affected!"
log "#{result.cmd_tuples} rows affected!" if result.cmd_tuples > 0
end
Theme.expire_site_cache!