From 28926f9a00b9dc43c975dda5897625626edc855c Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 7 Apr 2015 14:47:46 +0300 Subject: 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. --- res/neo4j/reset-db__clean.cypher | 4 ---- 1 file changed, 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; -- cgit v1.3.1