activegraph 10.0.0.pre.beta.6 → 10.0.0.pre.beta.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_graph/migrations/schema.rb +4 -4
- data/lib/active_graph/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: 2902297d95b7e8850de1e878b4adb9187ccba6cd40cfbb803717cb9175097923
|
4
|
+
data.tar.gz: 74884302b9d3990d944d809d67809037d5544411e748a203ab54710e91d51b1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcbb938142991fcd1b4f3fd0def043448953cd1068ce40f44c04cd36b553f220b350c9f1bd80456142f3247312d2b8dfd2fbfba2a19aa0be99fbcc668ee8d39a
|
7
|
+
data.tar.gz: 8c694ef8ad6767e06fb93d6407052e5e4ef698f19c2ac774ca59448eca9e09a9e2da7791b0a3282f6990328e7efb7e28b2d69e5d258981e65f99112ea1496c80
|
@@ -34,19 +34,19 @@ module ActiveGraph
|
|
34
34
|
def v3_indexes(result)
|
35
35
|
result.reject do |row|
|
36
36
|
# These indexes are created automagically when the corresponding constraints are created
|
37
|
-
row
|
38
|
-
end.map
|
37
|
+
row[:type] == 'node_unique_property'
|
38
|
+
end.map { |row| row[:description] }
|
39
39
|
end
|
40
40
|
|
41
41
|
def v4_indexes(result)
|
42
42
|
result.reject do |row|
|
43
43
|
# These indexes are created automagically when the corresponding constraints are created
|
44
|
-
row
|
44
|
+
row[:uniqueness] == 'UNIQUE'
|
45
45
|
end.map(&method(:description))
|
46
46
|
end
|
47
47
|
|
48
48
|
def description(row)
|
49
|
-
"INDEX FOR (n:#{row
|
49
|
+
"INDEX FOR (n:#{row[:labelsOrTypes].first}) ON (#{row[:properties].map { |prop| "n.#{prop}" }.join(', ')})"
|
50
50
|
end
|
51
51
|
|
52
52
|
def drop_and_create_queries(existing, specified, remove_missing)
|
data/lib/active_graph/version.rb
CHANGED