app/models/myreplicator/export.rb in myreplicator-1.1.50 vs app/models/myreplicator/export.rb in myreplicator-1.1.51

- old
+ new

@@ -48,14 +48,14 @@ def reload Log.run(:job_type => "export", :name => schedule_name, :file => filename, :export_id => id) do |log| # TRUNCATE TABLE & Rest incremental value if there is any - sql = "TRUNCATE TABLE '#{@export.destination_schema}'.'#{@export.table_name}';" + sql = "TRUNCATE TABLE '#{self.destination_schema}'.'#{self.table_name}';" if self.export_to == "vertica" Myreplicator::DB.exec_sql("vertica",sql) else - Myreplicator::DB.exec_sql("#{@export.destination_schema}",sql) + Myreplicator::DB.exec_sql("#{self.destination_schema}",sql) end if self.export_type != "all" self.max_incremental_value = nil self.save!