tableflip 0.1.2 → 0.1.3
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/tableflip/executor.rb +1 -1
- data/tableflip.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 70bcc4300e4ae4a889cb321d9987a91c7941f2be
|
|
4
|
+
data.tar.gz: 54bd94fb6d7782601e1ade56864f88fce3b8ac81
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 717616a2099de1b003c745e8613ee40b21866673c76eaa6515596c55ebb177065f0f9d70595a8ae2a1bc2465b8f4f3b354a0bb4a7d02edc3d770b14221961b09
|
|
7
|
+
data.tar.gz: 15cee38625ff94d6f3104fdef2c5f013ad673ff78cad85919a1d07bdd1e2a0c36baa94df408c9c937e4f642a083abae01c8bb5668bdea5816a98461bab41ccb5
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.3
|
data/lib/tableflip/executor.rb
CHANGED
|
@@ -381,7 +381,7 @@ class Tableflip::Executor
|
|
|
381
381
|
if (values.any?)
|
|
382
382
|
case (@strategy.migrate_method)
|
|
383
383
|
when :insert
|
|
384
|
-
do_query(target_db, "INSERT
|
|
384
|
+
do_query(target_db, "INSERT IGNORE INTO `#{table}` (#{columns.collect { |c| "`#{c}`" }.join(',')}) VALUES #{values.join(',')}")
|
|
385
385
|
else
|
|
386
386
|
do_query(target_db, "REPLACE INTO `#{table}` (#{columns.collect { |c| "`#{c}`" }.join(',')}) VALUES #{values.join(',')}")
|
|
387
387
|
end
|
data/tableflip.gemspec
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: tableflip 0.1.
|
|
5
|
+
# stub: tableflip 0.1.3 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "tableflip"
|
|
9
|
-
s.version = "0.1.
|
|
9
|
+
s.version = "0.1.3"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|