Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update datatype convert example 340 #2027

Merged
merged 3 commits into from
Mar 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions docs-2.0/3.ngql-guide/10.tag-statements/3.alter-tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@

- The property name must be unique in a tag. If you add a property with the same name as an existing property or a dropped property, the operation fails.

- Only the length of a `FIXED_STRING` or an `INT` can be increased. The length of a `STRING` or an `INT` cannot be decreased.

- Only the data type conversions from FIXED_STRING to STRING and from FLOAT to DOUBLE are allowed.


## Syntax

Expand All @@ -38,6 +34,12 @@ ttl_definition:

- When a property value is set to `NOT NULL` using `ADD` or `CHANGE`, a default value must be specified for the property, that is, the value of `DEFAULT` must be specified.

- When using `CHANGE` to modify the data type of a property:

- Only the length of a `FIXED_STRING` or an `INT` can be increased. The length of a `STRING` or an `INT` cannot be decreased.

- Only the data type conversions from FIXED_STRING to STRING and from FLOAT to DOUBLE are allowed.

## Examples

```ngql
Expand Down