myreplicator 1.1.34 → 1.1.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -152,6 +152,7 @@ module Myreplicator
|
|
|
152
152
|
exp = Export.find(metadata.export_id)
|
|
153
153
|
Kernel.p "===== DROP CURRENT TABLE ====="
|
|
154
154
|
sql = "DROP TABLE IF EXISTS #{options[:db]}.#{options[:destination_schema]}.#{options[:table]} CASCADE;"
|
|
155
|
+
Myreplicator::DB.exec_sql("vertica",sql)
|
|
155
156
|
# run the export. The next time loader runs, it will load the file
|
|
156
157
|
exp.export
|
|
157
158
|
else
|
|
@@ -420,6 +421,7 @@ module Myreplicator
|
|
|
420
421
|
def get_analyze_constraints *args
|
|
421
422
|
options = args.extract_options!
|
|
422
423
|
exp = Export.find(options[:export_id])
|
|
424
|
+
Kernel.p "!!!!! get_analyze_constraints !!!!!"
|
|
423
425
|
begin
|
|
424
426
|
if exp.analyze_constraints == true
|
|
425
427
|
sql = "SELECT analyze_constraints('#{options[:vertica_db]}.#{options[:vertica_schema]}.#{options[:table]}');"
|
data/lib/myreplicator/version.rb
CHANGED
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.
|
|
4
|
+
version: 1.1.35
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -360,7 +360,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
360
360
|
version: '0'
|
|
361
361
|
segments:
|
|
362
362
|
- 0
|
|
363
|
-
hash:
|
|
363
|
+
hash: 2581716850095597113
|
|
364
364
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
365
365
|
none: false
|
|
366
366
|
requirements:
|
|
@@ -369,7 +369,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
369
369
|
version: '0'
|
|
370
370
|
segments:
|
|
371
371
|
- 0
|
|
372
|
-
hash:
|
|
372
|
+
hash: 2581716850095597113
|
|
373
373
|
requirements: []
|
|
374
374
|
rubyforge_project:
|
|
375
375
|
rubygems_version: 1.8.24
|