makumba_import 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/makumba_import/key_handler.rb +1 -1
- 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: c9e21f65a28affa8897501641b64f203f7522b5b
|
4
|
+
data.tar.gz: 61a9792942d6a80e41a3b76c3d5fc4c725b71a08
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 875f5573c40952a1c4b7ff3dd388282211c4fd3369378b17ee3f129a7b257717e1c9e1fa8533b92267b56ab7ac1c5ccac01f92ee65fc440d557f0efdb635043a
|
7
|
+
data.tar.gz: 1b98966b7a206eebfc4585c169b3ce2ba2b43c76e679a73047ca698d3eb352df52ac40dbb01ae558f794b756647e071f81e609db0c98e0d2a287d5b884dffc2e
|
@@ -35,7 +35,7 @@ module MakumbaImport
|
|
35
35
|
object = Object.const_get(model)
|
36
36
|
primary_key = object.primary_key
|
37
37
|
current_max = object.unscoped.maximum(primary_key, :conditions => ["#{primary_key} > ? and #{primary_key} < ?", @dbsv << 24, (@dbsv + 1) << 24]) || ((@dbsv << 24) + 1)
|
38
|
-
redis_key = "maxprimary_#{
|
38
|
+
redis_key = "maxprimary_#{object.table_name}_#{@dbsv}"
|
39
39
|
|
40
40
|
@redis.set redis_key, current_max
|
41
41
|
puts "updated #{model} - #{object.table_name}"
|