lib/gamma/command/apply.rb in gamma-0.1.8 vs lib/gamma/command/apply.rb in gamma-0.1.9
- old
+ new
@@ -17,9 +17,11 @@
logger.info("[#{t.sync_mode}] Sync Start #{t.table_name}".green)
case t.sync_mode
when "replace"
Gamma::Importer::Replace.new(@in_client, @out_client, t, apply: true).execute
+ when "force_replace"
+ Gamma::Importer::Replace.new(@in_client, @out_client, t, apply: true, ignore_error: true).execute
else
logger.info("[#{t.sync_mode}] Sync Failed #{t.table_name}. Unknown Sync mode".red)
end
end
end