diff --git a/DOCKER_MORE_CLOSELY.md b/DOCKER_MORE_CLOSELY.md index 03e6417ec..88b4a392b 100644 --- a/DOCKER_MORE_CLOSELY.md +++ b/DOCKER_MORE_CLOSELY.md @@ -4,7 +4,7 @@ ***Attention:** For using Docker commands in Apple M1 environments!* -### Enviroment Variable For Apple M1 Platform +### Environment Variable For Apple M1 Platform To set the Docker platform environment variable in your terminal tab, run: @@ -22,7 +22,7 @@ For Docker compose `up` or `build` commands, you can use our Apple M1 override f # for development $ docker compose -f docker-compose.yml -f docker-compose.override.yml -f docker-compose.apple-m1.override.yml up -# only once: init admin user and create indexes and contraints in Neo4j database +# only once: init admin user and create indexes and constraints in Neo4j database $ docker compose exec backend yarn prod:migrate init # clean db $ docker compose exec backend yarn db:reset @@ -31,7 +31,7 @@ $ docker compose exec backend yarn db:seed # for production $ docker compose -f docker-compose.yml -f docker-compose.apple-m1.override.yml up -# only once: init admin user and create indexes and contraints in Neo4j database +# only once: init admin user and create indexes and constraints in Neo4j database $ docker compose exec backend /bin/sh -c "yarn prod:migrate init" ``` diff --git a/backend/src/db/migrate/store.js b/backend/src/db/migrate/store.js index 57a317b47..ac762647b 100644 --- a/backend/src/db/migrate/store.js +++ b/backend/src/db/migrate/store.js @@ -85,7 +85,7 @@ class Store { await createDefaultAdminUser(session) if (CONFIG.CATEGORIES_ACTIVE) await createCategories(session) const writeTxResultPromise = session.writeTransaction(async (txc) => { - await txc.run('CALL apoc.schema.assert({},{},true)') // drop all indices and contraints + await txc.run('CALL apoc.schema.assert({},{},true)') // drop all indices and constraints return Promise.all( [ 'CALL db.index.fulltext.createNodeIndex("user_fulltext_search",["User"],["name", "slug"])', diff --git a/neo4j/README.md b/neo4j/README.md index f2b26d551..885f7f445 100644 --- a/neo4j/README.md +++ b/neo4j/README.md @@ -98,22 +98,22 @@ On a server with Kubernetes cluster: $ kubectl -n default exec -it $(kubectl -n default get pods | grep ocelot-backend | awk '{ print $1 }') -- /bin/sh -c "yarn prod:migrate init" ``` -***Cypher commands to show indexes and contraints*** +***Cypher commands to show indexes and constraints*** ```bash # in browser command line or cypher shell -# show all indexes and contraints +# show all indexes and constraints $ :schema # show all indexes $ CALL db.indexes(); -# show all contraints +# show all constraints $ CALL db.constraints(); ``` -***Cypher commands to create and drop indexes and contraints*** +***Cypher commands to create and drop indexes and constraints*** ```bash # in browser command line or cypher shell @@ -126,6 +126,6 @@ $ CALL db.index.fulltext.createNodeIndex("tag_fulltext_search",["Tag"],["id"]); # drop an index $ DROP CONSTRAINT ON ( image:Image ) ASSERT image.url IS UNIQUE -# drop all indexes and contraints +# drop all indexes and constraints $ CALL apoc.schema.assert({},{},true) YIELD label, key RETURN * ; ```