neo4j 8.1.4 → 8.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 343541e7477820956b706b0ba67fc97fbea3d4e6
4
- data.tar.gz: dd65aa8c71fc21ff88cf2718934a5749494d1ccf
3
+ metadata.gz: 13d58b195820ff94f9899f26eb281f1621b1ea64
4
+ data.tar.gz: a49c32fd9ef2a70e2b825d6de8cbf169a61fe88f
5
5
  SHA512:
6
- metadata.gz: 9893f832911d1c1c9c780fbe9b192795956d8e80812752995ea0296e248e146484e466471b7164a46a515698f7d25013825eab5d50a62167c893a0dbb28715c9
7
- data.tar.gz: 39be21820e42ca1fca0bbf7c967e37c4539d1b55b474632d2b8a2fad6203984446b002370c5c8e75e084c7d04116959fcecfcece0e5212127c38dcd4ce269964
6
+ metadata.gz: 740c3277e7d4a5ec4c34965adf2e4fa871cbe59f3658d89f396861ca0d12d8129426dddc186aab2c940d35134bd077e92650fc2b355d87e5370afd907395ff00
7
+ data.tar.gz: f4e8ba8d4d366202a803b8bc035d31868ca8aa2cd546807021a1ad0e3df220a999b5520add6dd9e7c1c9a874f061d4b6cfd3aa9f63c7debc20b1fbd7d54eda57
@@ -7,6 +7,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
8
  ### Fixed
9
9
 
10
+ - Make sure that we handle the state of the SchemaMigration correctly when we get failures in non-transactional migrations (see #1383 / thanks @leviwilson and @ProGM)
11
+
12
+ ## [8.1.4] 2017-08-17
13
+
14
+ ### Fixed
15
+
10
16
  - Issue where node Cypher variable could change during a `branch` (see issue #1348 / thanks @klobuczek for the report)
11
17
 
12
18
  ## [8.1.3] 2017-06-29
@@ -32,10 +32,11 @@ module Neo4j
32
32
  begin
33
33
  run_migration(:up)
34
34
  rescue StandardError => e
35
- schema.destroy
35
+ schema.destroy if transactions?
36
36
  handle_migration_error!(e)
37
+ else
38
+ schema.update!(incomplete: nil)
37
39
  end
38
- schema.update!(incomplete: nil)
39
40
  end
40
41
 
41
42
  def migrate_down
@@ -44,10 +45,11 @@ module Neo4j
44
45
  begin
45
46
  run_migration(:down)
46
47
  rescue StandardError => e
47
- schema.update!(incomplete: nil)
48
+ schema.update!(incomplete: nil) if transactions?
48
49
  handle_migration_error!(e)
50
+ else
51
+ schema.destroy
49
52
  end
50
- schema.destroy
51
53
  end
52
54
 
53
55
  def run_migration(direction)
@@ -1,3 +1,3 @@
1
1
  module Neo4j
2
- VERSION = '8.1.4'
2
+ VERSION = '8.1.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neo4j
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.4
4
+ version: 8.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andreas Ronge, Brian Underwood, Chris Grigg