makumba_import 0.5 → 0.5.1
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 +3 -3
- data/lib/makumba_import/legacy.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: faba01d19123888f6b6970f8b3a3409aeed8d66e
|
4
|
+
data.tar.gz: 842e00720dae0b3b30ebb260313fea0b6e1ff6b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb4040390f5d5e04d2419f79f9383df033694f333782ea7e9fc07a7c3b34df48f99885d4411a260a9434116cf4657b2a904086220ecccfb556ec5269a0cf0813
|
7
|
+
data.tar.gz: 7f95897e57b5d5203f8985e12338735cabda5df24bd6b1ec1ec83c91bab5f5f18cd26ba27a0eba160e05305e31e2280e233fcc776bbc377a63aad19b4c408491
|
@@ -16,8 +16,8 @@ module MakumbaImport
|
|
16
16
|
@redis = redis
|
17
17
|
end
|
18
18
|
|
19
|
-
def self.next_primary_key(
|
20
|
-
@redis.incr "maxprimary_#{
|
19
|
+
def self.next_primary_key(table_name)
|
20
|
+
@redis.incr "maxprimary_#{table_name}_#{@dbsv}"
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.update_redis_keys
|
@@ -38,7 +38,7 @@ module MakumbaImport
|
|
38
38
|
redis_key = "maxprimary_#{model.table_name}_#{@dbsv}"
|
39
39
|
|
40
40
|
@redis.set redis_key, current_max
|
41
|
-
puts "updated #{model} - #{
|
41
|
+
puts "updated #{model} - #{object.table_name}"
|
42
42
|
rescue => e
|
43
43
|
puts "#{model} - #{e}"
|
44
44
|
end
|