Skip to content

michael-simons/neo4j-flyway-database

Repository files navigation

Neo4j-Flyway-Database

Introduction

This is a plugin for Redgate Flyway Database migrations. It requires the Neo4j JDBC Driver 6.2 or higher. It does not ship the driver itself and requires at least 6.2 or higher. This plugin does not work with the common Neo4j driver for Java. If you need something on that driver, have a look at Neo4j-Migrations, it creates the same database structure and both tools should be able to read each other’s data.

Support is delivered on best effort basis, this plugin is neither an official Neo4j nor Redgate product.

Which driver-bundle to use?

We recommend the full-bundle. The Maven coordinates are: org.neo4j:neo4j-jdbc-full-bundle.

SQL or Cypher?

The Neo4j JDBC Driver can run Cypher and SQL. It defaults to Cypher by default, and we recommend writing your migrations in Cypher. Cypher files with .sql extensions look odd, so you should configure Flyway to recognize .cypher, too.

However, if you enabled SQL to Cypher translation, you can also use SQL in your migrations. Learn more about this in the drivers manual. The URL parameter to turn on SQL to Cypher translation is ?enableSQLTranslation=true.

About

A plugin for Flyway that enables Neo4j usage.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 2

  •  
  •