Skip to content

Commit b3024a5

Browse files
mnd999l-heemann
andauthored
Apply suggestions from code review
Co-authored-by: Lasse Heemann <[email protected]>
1 parent 56711d6 commit b3024a5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/ROOT/pages/errors/gql-errors/42NAC.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
error: syntax error or access rule violation - invalid CREATE DATABASE statement. The backup metadata script contains an invalid or missing CREATE DATABASE statement. The metadata script must contain exactly one CREATE DATABASE statement and it must use the parameter $database.
55

66
== Explanation
7-
When using the `existingMetadata: true` option to restore a database from a backup, the backup metadata script must contain exactly one CREATE DATABASE statement. This statement must use the parameter `$database` to specify the name of the database being restored. If the metadata script is missing this statement or contains an invalid statement, the CREATE DATABASE operation will fail with this error.
7+
When using the `existingMetadata: use` option to restore a database from a backup, the backup metadata script must contain exactly one CREATE DATABASE statement. This statement must use the parameter `$database` to specify the name of the database being restored. If the metadata script is missing this statement or contains an invalid statement, the CREATE DATABASE operation will fail with this error.
88

99
== Example scenario
1010
For example, try to create a database with using the following command:

modules/ROOT/pages/errors/gql-errors/50N26.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ For example, try to create a database with using the following command:
1414
CREATE DATABASE `$databaseString` OPTIONS {existingMetadata:'use', seedUri:'$uri', existingData:'use'}
1515
----
1616

17-
If the backup at `$uri` constains invalid Cypher syntax in its metadata script, an error will be thrown with GQLSTATUS 50N26.
17+
If the backup at `$uri` contains invalid Cypher syntax in its metadata script, an error will be thrown with GQLSTATUS 50N26.
1818

1919
== Possible solutions
2020

0 commit comments

Comments
 (0)