summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--res/neo4j/reset-db__clean.cypher4
1 files changed, 4 insertions, 0 deletions
diff --git a/res/neo4j/reset-db__clean.cypher b/res/neo4j/reset-db__clean.cypher
index 5c8c4950..fa82fc87 100644
--- a/res/neo4j/reset-db__clean.cypher
+++ b/res/neo4j/reset-db__clean.cypher
@@ -20,3 +20,7 @@ create constraint on (x:__RZDOC) assert x.name is unique;
create constraint on (x:Person) assert x.id is unique;
create constraint on (x:Skill) assert x.id is unique;
+// Drop constraints we used to have - there is no DROP CONSTRAINT * - see http://stackoverflow.com/questions/22357379/neo4j-how-to-drop-all-constraints
+
+drop constraint on (x:Person) assert x.name is unique;
+drop constraint on (x:Skill) assert x.name is unique;