diff --git a/doc/cql3/CQL.textile b/doc/cql3/CQL.textile index 8bedf19a78..d2a4b726c2 100644 --- a/doc/cql3/CQL.textile +++ b/doc/cql3/CQL.textile @@ -18,7 +18,7 @@ # --> -h1. Cassandra Query Language (CQL) v3.4.3 +h1. Cassandra Query Language (CQL) v3.4.6 @@ -215,7 +215,7 @@ h3(#alterKeyspaceStmt). ALTER KEYSPACE __Syntax:__ bc(syntax).. - ::= ALTER KEYSPACE WITH + ::= ALTER KEYSPACE (IF EXISTS)? WITH p. __Sample:__ @@ -225,6 +225,7 @@ ALTER KEYSPACE Excelsior p. The @ALTER KEYSPACE@ statement alters the properties of an existing keyspace. The supported @@ are the same as for the "@CREATE KEYSPACE@":#createKeyspaceStmt statement. +If the keyspace does not exist, the statement will return an error, unless @IF EXISTS@ is used in which case the operation is a no-op. h3(#dropKeyspaceStmt). DROP KEYSPACE @@ -410,12 +411,11 @@ h3(#alterTableStmt). ALTER TABLE __Syntax:__ bc(syntax).. - ::= ALTER (TABLE | COLUMNFAMILY) + ::= ALTER (TABLE | COLUMNFAMILY) (IF NOT EXISTS)? - ::= ADD - | ADD ( ( , )* ) - | DROP - | DROP ( ( , )* ) + ::= ADD (IF NOT EXISTS)? ( ( , )* ) + | DROP (IF EXISTS)? ( ( , )* ) + | RENAME (IF EXISTS)? to (AND to )* | DROP COMPACT STORAGE | WITH