From cfcb5e4aa7f95ffaf556f299c78f010d6d2aab52 Mon Sep 17 00:00:00 2001 From: cooper-lzy <78672629+cooper-lzy@users.noreply.github.com> Date: Fri, 18 Feb 2022 11:11:16 +0800 Subject: [PATCH] update alter tag (#1108) --- docs-2.0/15.contribution/how-to-contribute.md | 2 +- docs-2.0/3.ngql-guide/10.tag-statements/3.alter-tag.md | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs-2.0/15.contribution/how-to-contribute.md b/docs-2.0/15.contribution/how-to-contribute.md index 60ddd0345d5..c525986c451 100644 --- a/docs-2.0/15.contribution/how-to-contribute.md +++ b/docs-2.0/15.contribution/how-to-contribute.md @@ -192,7 +192,7 @@ For detailed methods, see [How to add test cases](https://github.com/vesoft-inc/ ### Step 1: Confirm the project donation -Contact the official Nebula Graph staff via email, WeChat, Slack, etc. to confirm the donation project. The project will be donated to the Nebula Contrib organization. +Contact the official Nebula Graph staff via email, WeChat, Slack, etc. to confirm the donation project. The project will be donated to the [Nebula Contrib organization](https://github.com/nebula-contrib). Email address: info@vesoft.com diff --git a/docs-2.0/3.ngql-guide/10.tag-statements/3.alter-tag.md b/docs-2.0/3.ngql-guide/10.tag-statements/3.alter-tag.md index 3efe560f1a7..760157e9cad 100644 --- a/docs-2.0/3.ngql-guide/10.tag-statements/3.alter-tag.md +++ b/docs-2.0/3.ngql-guide/10.tag-statements/3.alter-tag.md @@ -17,9 +17,9 @@ ALTER TAG [COMMENT = '']; alter_definition: -| ADD (prop_name data_type) +| ADD (prop_name data_type [NULL | NOT NULL] [DEFAULT ] [COMMENT '']) | DROP (prop_name) -| CHANGE (prop_name data_type) +| CHANGE (prop_name data_type [NULL | NOT NULL] [DEFAULT ] [COMMENT '']) ttl_definition: TTL_DURATION = ttl_duration, TTL_COL = prop_name @@ -36,6 +36,7 @@ nebula> CREATE TAG IF NOT EXISTS t1 (p1 string, p2 int); nebula> ALTER TAG t1 ADD (p3 int, p4 string); nebula> ALTER TAG t1 TTL_DURATION = 2, TTL_COL = "p2"; nebula> ALTER TAG t1 COMMENT = 'test1'; +nebula> ALTER TAG t1 ADD (p5 double NOT NULL DEFAULT 0.4 COMMENT 'p5') COMMENT='test2'; ``` ## Implementation of the operation