Extended the docs for mapping attributes precision and scale
This commit is contained in:
parent
3f8865c6fb
commit
d93f648230
@ -99,10 +99,13 @@ Optional attributes:
|
|||||||
string values for you.
|
string values for you.
|
||||||
|
|
||||||
- **precision**: The precision for a decimal (exact numeric) column
|
- **precision**: The precision for a decimal (exact numeric) column
|
||||||
(Applies only for decimal column)
|
(applies only for decimal column), which is the maximum number of
|
||||||
|
digits that are stored for the values.
|
||||||
|
|
||||||
- **scale**: The scale for a decimal (exact numeric) column (Applies
|
- **scale**: The scale for a decimal (exact numeric) column (applies
|
||||||
only for decimal column)
|
only for decimal column), which represents the number of digits
|
||||||
|
to the right of the decimal point and must not be greater than
|
||||||
|
*precision*.
|
||||||
|
|
||||||
- **unique**: Boolean value to determine if the value of the column
|
- **unique**: Boolean value to determine if the value of the column
|
||||||
should be unique across all rows of the underlying entities table.
|
should be unique across all rows of the underlying entities table.
|
||||||
|
@ -199,9 +199,12 @@ list:
|
|||||||
- ``nullable``: (optional, default FALSE) Whether the database
|
- ``nullable``: (optional, default FALSE) Whether the database
|
||||||
column is nullable.
|
column is nullable.
|
||||||
- ``precision``: (optional, default 0) The precision for a decimal
|
- ``precision``: (optional, default 0) The precision for a decimal
|
||||||
(exact numeric) column. (Applies only if a decimal column is used.)
|
(exact numeric) column (applies only for decimal column),
|
||||||
|
which is the maximum number of digits that are stored for the values.
|
||||||
- ``scale``: (optional, default 0) The scale for a decimal (exact
|
- ``scale``: (optional, default 0) The scale for a decimal (exact
|
||||||
numeric) column. (Applies only if a decimal column is used.)
|
numeric) column (applies only for decimal column), which represents
|
||||||
|
the number of digits to the right of the decimal point and must
|
||||||
|
not be greater than *precision*.
|
||||||
- ``columnDefinition``: (optional) Allows to define a custom
|
- ``columnDefinition``: (optional) Allows to define a custom
|
||||||
DDL snippet that is used to create the column. Warning: This normally
|
DDL snippet that is used to create the column. Warning: This normally
|
||||||
confuses the SchemaTool to always detect the column as changed.
|
confuses the SchemaTool to always detect the column as changed.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user