-
Notifications
You must be signed in to change notification settings - Fork 273
Upgrading
You can also specify which neo4j java version it should use.
Example:
gen 'neo4j', '2.0.0'
gem 'neo4j-community', '1.7.0'You can use the neo4j-upgrade command to upgrade the database.
Example:
bundle exec neo4j-upgrade db/neo4j-developmentSee Neo4j Upgrade Instructions
- Renamed size property on rule nodes to count (
_count__all__classname=>_size__all__classname) - Rename of
has_n(...).to(other_class)generated relationships.
- The
relsandrelmethod always takes an direction as first argument (default to `both`) - You declare index by using the property class method, example property :name, :index => :exact
- alias
Neo4j::Modelis not available (useNeo4j::Rails::Model)
The 2.0 release contains a number of changes which means that just running the neo4j-upgrade command is not enough. There is a rake task which can help doing this for you.
For a rails project, add the following line to your Rakefile
require 'neo4j/tasks/neo4j'Make sure that you don’t have any Rails initializers using the database before running the neo4j rake task.
Set which model classes should be upgraded, using the NEO4J_CLASSES environment variable
$ export NEO4J_CLASSES="Person, Order, Post"If you are using multitenancy, you need to upgrade each multitenancy node. You do that by setting the NEO4J_MULTI_TENANCY_CLASSES environment variable:
$ export NEO4J_MULTI_TENANCY_CLASSES="Domain"Run the rake script:
bundle exec rake neo4j:upgrade_v2WARNING: Much of the information in this wiki is out of date. We are in the process of moving things to readthedocs
- Project Introduction
- Neo4j::ActiveNode
- Neo4j::ActiveRel
- Search and Scope
- Validation, Uniqueness, and Case Sensitivity
- Indexing VS Legacy Indexing
- Optimized Methods
- Inheritance
- Core: Nodes & Rels
- Introduction
- Persistence
- Find : Lucene
- Relationships
- Third Party Gems & extensions
- Scaffolding & Generators
- HA Cluster