misc settings, ymls and cmds

This commit is contained in:
Dobromir Popov
2024-04-07 20:20:36 +03:00
parent fb96c68f6f
commit 36a8c5a0c3
7 changed files with 82 additions and 7 deletions

View File

@ -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);")