Merge pull request #3892 from mahomedalid/feature/3771_string_length

Adding support for parenthesis in the er diagram attribute types.
This commit is contained in:
Knut Sveidqvist
2022-12-16 12:58:30 +01:00
committed by GitHub
6 changed files with 37 additions and 7 deletions

View File

@@ -230,7 +230,7 @@ erDiagram
}
```
The `type` and `name` values must begin with an alphabetic character and may contain digits, hyphens or underscores. Other than that, there are no restrictions, and there is no implicit set of valid data types.
The `type` and `name` values must begin with an alphabetic character and may contain digits, hyphens, underscores, parentheses and square brackets. Other than that, there are no restrictions, and there is no implicit set of valid data types.
#### Attribute Keys and Comments
@@ -244,11 +244,12 @@ erDiagram
string registrationNumber
string make
string model
string[] parts
}
PERSON ||--o{ NAMED-DRIVER : is
PERSON {
string driversLicense PK "The license #"
string firstName
string(99) firstName "Only 99 characters are allowed"
string lastName
int age
}
@@ -263,11 +264,12 @@ erDiagram
string registrationNumber
string make
string model
string[] parts
}
PERSON ||--o{ NAMED-DRIVER : is
PERSON {
string driversLicense PK "The license #"
string firstName
string(99) firstName "Only 99 characters are allowed"
string lastName
int age
}