misc settings, ymls and cmds
This commit is contained in:
@ -30,9 +30,6 @@ class Neo4jConnection:
|
||||
|
||||
@staticmethod
|
||||
def _create_constraints_and_indexes(tx):
|
||||
# Constraints and indexes for Person
|
||||
tx.run("CREATE CONSTRAINT ON (p:Person) ASSERT p.person_id IS UNIQUE;")
|
||||
|
||||
# Constraints and indexes for Memory
|
||||
tx.run("CREATE CONSTRAINT ON (m:Memory) ASSERT m.memory_id IS UNIQUE;")
|
||||
tx.run("CREATE INDEX ON :Memory(content);")
|
||||
|
Reference in New Issue
Block a user