From 5ffb7229995ce7f15e8bfdfd8090c70b312b9b8d Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Tue, 9 Jul 2019 13:45:08 +0200 Subject: [PATCH] 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. --- lib/remap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remap.rb b/lib/remap.rb index d6439fd659..b49cd7b398 100644 --- a/lib/remap.rb +++ b/lib/remap.rb @@ -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!