ec-pg 0.1.5 → 0.1.7
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/lib/ec/pg/migrator.rb +1 -1
- data/lib/ec/pg/tenant_context.rb +4 -5
- data/lib/ec/pg/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: def4a2f65d7a836d927f53af5af0bf3cb0ef644803f2f5dd96e992d92019bff3
|
|
4
|
+
data.tar.gz: ff88e37f850e3d18bdc48c9a4ca522cdc776f793183852f50cf7c8e9a657ff33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a7b0d8add219551e2793c062f62ae4ed36bdaa2d53977b035c55993cce8f4a114a485698dd3a9377f4aa47a15aa10f7bfdac523813496fe194f949fe5b28fd26
|
|
7
|
+
data.tar.gz: fca5463a5e84112a75090f7b852b7abf88ed68c24c1e66b142f1a0a626fe6c95df24e1a240bcd01325b4b73f8eebf18ff0b05fdd156f9c0adade49c829ef63a3
|
data/lib/ec/pg/migrator.rb
CHANGED
data/lib/ec/pg/tenant_context.rb
CHANGED
|
@@ -20,19 +20,18 @@ module Ec
|
|
|
20
20
|
|
|
21
21
|
# Layer composition: innermost layer first so that the outermost wrapper
|
|
22
22
|
# controls the connection that the inner layers receive.
|
|
23
|
-
|
|
24
23
|
run = block
|
|
25
24
|
|
|
26
25
|
# 1. Schema (innermost)
|
|
27
26
|
if schema
|
|
28
|
-
|
|
29
|
-
run = -> {SchemaManager.with_schema(schema, &
|
|
27
|
+
schema_run = run
|
|
28
|
+
run = -> {SchemaManager.with_schema(schema, &schema_run)}
|
|
30
29
|
end
|
|
31
30
|
|
|
32
31
|
# 2. Shard (outermost — switches the connection first)
|
|
33
32
|
if shard
|
|
34
|
-
|
|
35
|
-
run = -> {ShardManager.with_shard(shard, &
|
|
33
|
+
shard_run = run
|
|
34
|
+
run = -> {ShardManager.with_shard(shard, &shard_run)}
|
|
36
35
|
end
|
|
37
36
|
|
|
38
37
|
if run.present?
|
data/lib/ec/pg/version.rb
CHANGED