summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-07 14:47:46 +0300
committerAlon Levy <alon@pobox.com>2015-04-07 14:47:46 +0300
commit28926f9a00b9dc43c975dda5897625626edc855c (patch)
tree82bf037ce99790989b6ed675b7f8e90f76441623
parentd68a0e363fade2612a56114d3174927f69457403 (diff)
Revert "reset-db__clean.cypher: remove constraints we no longer require"
This reverts commit 792ec339802271c79923016104e06ba10e8a64f8. Dropping a non existant constraint is an error. The correct approach is to list all constraings and then delete those, which requires scripting.
-rw-r--r--res/neo4j/reset-db__clean.cypher4
1 files changed, 0 insertions, 4 deletions
diff --git a/res/neo4j/reset-db__clean.cypher b/res/neo4j/reset-db__clean.cypher
index fa82fc87..5c8c4950 100644
--- a/res/neo4j/reset-db__clean.cypher
+++ b/res/neo4j/reset-db__clean.cypher
@@ -20,7 +20,3 @@ 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;