myreplicator 1.1.50 → 1.1.51

Sign up to get free protection for your applications and to get access to all the features.
@@ -50,11 +50,11 @@ module Myreplicator
50
50
  Log.run(:job_type => "export", :name => schedule_name,
51
51
  :file => filename, :export_id => id) do |log|
52
52
  # TRUNCATE TABLE & Rest incremental value if there is any
53
- sql = "TRUNCATE TABLE '#{@export.destination_schema}'.'#{@export.table_name}';"
53
+ sql = "TRUNCATE TABLE '#{self.destination_schema}'.'#{self.table_name}';"
54
54
  if self.export_to == "vertica"
55
55
  Myreplicator::DB.exec_sql("vertica",sql)
56
56
  else
57
- Myreplicator::DB.exec_sql("#{@export.destination_schema}",sql)
57
+ Myreplicator::DB.exec_sql("#{self.destination_schema}",sql)
58
58
  end
59
59
 
60
60
  if self.export_type != "all"
@@ -181,7 +181,7 @@ module Myreplicator
181
181
  flags += " --#{flag} "
182
182
  end
183
183
  end
184
-
184
+
185
185
  cmd = Myreplicator.mysql
186
186
  cmd += "#{flags} "
187
187
 
@@ -1,3 +1,3 @@
1
1
  module Myreplicator
2
- VERSION = "1.1.50"
2
+ VERSION = "1.1.51"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myreplicator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.50
4
+ version: 1.1.51
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-08 00:00:00.000000000 Z
12
+ date: 2013-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -355,7 +355,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
355
355
  version: '0'
356
356
  segments:
357
357
  - 0
358
- hash: 350626408215174858
358
+ hash: 813394573647275316
359
359
  required_rubygems_version: !ruby/object:Gem::Requirement
360
360
  none: false
361
361
  requirements:
@@ -364,7 +364,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
364
364
  version: '0'
365
365
  segments:
366
366
  - 0
367
- hash: 350626408215174858
367
+ hash: 813394573647275316
368
368
  requirements: []
369
369
  rubyforge_project:
370
370
  rubygems_version: 1.8.24