Skip to content
1 change: 1 addition & 0 deletions modules/ROOT/content-nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
*** xref:database-administration/composite-databases/concepts.adoc[]
*** xref:database-administration/composite-databases/create-composite-databases.adoc[]
*** xref:database-administration/composite-databases/list-composite-databases.adoc[]
*** xref:database-administration/composite-databases/alter-composite-databases.adoc[]
*** xref:database-administration/composite-databases/delete-composite-databases.adoc[]
*** xref:database-administration/composite-databases/querying-composite-databases.adoc[]
*** xref:database-administration/composite-databases/sharding-with-copy.adoc[]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
:description: This page describes how to alter composite databases.
[role=enterprise-edition not-on-aura]
[[composite-databases-alter]]
= Alter composite databases

Composite databases can be altered using `ALTER DATABASE`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we want to have a link to the alter standard database page here?

we don't seem to have links to the create/delete standard db pages from the composite db pages so maybe not 🤷


== Syntax

[options="header", width="100%", cols="1m,5a"]
|===
| Command | Syntax

| ALTER DATABASE
|
[source, syntax, role="noheader"]
----
ALTER DATABASE name [IF EXISTS]
SET DEFAULT LANGUAGE CYPHER {5\|25}
[WAIT [n [SEC[OND[S]]]]\|NOWAIT]
----
|===

== Alter database default language
The `ALTER DATABASE` command can be used to set the default Cypher version for a composite database in addition to standard databases.
For more information see link:{neo4j-docs-base-uri}/cypher-manual/current/queries/select-version/#alter-default-cypher-version[Cypher Manual -> Queries -> Select Cypher version].