summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-06 21:17:21 +0300
committerAlon Levy <alon@pobox.com>2015-04-06 21:17:21 +0300
commit792ec339802271c79923016104e06ba10e8a64f8 (patch)
tree7f63dab2a0917c8ccfe13143651a228b233c1904
parenta515aa30a1fa6621711c16a54f3c516bc78931eb (diff)
reset-db__clean.cypher: remove constraints we no longer require
-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;