Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neo4j stores: add a database schema version node to the database #254

Open
gordom6 opened this issue Oct 14, 2020 · 0 comments
Open

Neo4j stores: add a database schema version node to the database #254

gordom6 opened this issue Oct 14, 2020 · 0 comments
Assignees

Comments

@gordom6
Copy link
Contributor

gordom6 commented Oct 14, 2020

Our database is effectively write-once. We don't really need migrations and such. The middleware should only work with the most current database schema, and refuse to interoperate with an "old" database schema.

The Neo4j store in Scala should:

  1. Refuse to write to a non-empty database i.e., there should only ever be one write transaction on a database
  2. Check a non-empty database's schema version (node) against a version hard-coded in the Scala. If it's old, print a message and exit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants