lib/neo4j/migrations/helpers.rb in neo4j-9.5.3 vs lib/neo4j/migrations/helpers.rb in neo4j-9.6.0

- old
+ new

@@ -12,10 +12,10 @@ PROPERTY_ALREADY_DEFINED = 'Property `%{new_property}` is already defined in `%{label}`. '\ 'To overwrite, call `remove_property(:%{label}, :%{new_property})` before this method.'.freeze def remove_property(label, property) - by_label(label).remove(n: property).exec + by_label(label).remove("n.#{property}").exec end def rename_property(label, old_property, new_property) fail Neo4j::MigrationError, format(PROPERTY_ALREADY_DEFINED, new_property: new_property, label: label) if property_exists?(label, new_property) by_label(label).set("n.#{new_property} = n.#{old_property}")