From 42b3e1eac299ed66bc49ee68705a823155b494d3 Mon Sep 17 00:00:00 2001 From: Rebecca Taft Date: Mon, 17 Jan 2022 21:04:26 -0600 Subject: [PATCH] sql: fix ALTER DATABASE help text Prior to this commit, the CLI help text shown for ALTER DATABASE was incomplete and incorrect. This commit fixes the help text to include some omitted options and fixes ADD REGIONS and DROP REGIONS to say ADD REGION and DROP REGION. Release note (cli change): Fixed the CLI help text for ALTER DATABASE to show correct options for ADD REGION and DROP REGION, and include some missing options such as CONFIGURE ZONE. --- pkg/sql/parser/sql.y | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/sql/parser/sql.y b/pkg/sql/parser/sql.y index 4965ca37db9a..5a71304f7c15 100644 --- a/pkg/sql/parser/sql.y +++ b/pkg/sql/parser/sql.y @@ -1483,10 +1483,11 @@ alter_sequence_options_stmt: // %Category: DDL // %Text: // ALTER DATABASE RENAME TO +// ALTER DATABASE CONFIGURE ZONE // ALTER DATABASE OWNER TO // ALTER DATABASE CONVERT TO SCHEMA WITH PARENT -// ALTER DATABASE ADD REGIONS -// ALTER DATABASE DROP REGIONS +// ALTER DATABASE ADD REGION [IF NOT EXISTS] +// ALTER DATABASE DROP REGION [IF EXISTS] // ALTER DATABASE PRIMARY REGION // ALTER DATABASE SURVIVE // %SeeAlso: WEBDOCS/alter-database.html