1
0
mirror of synced 2025-01-19 15:01:40 +03:00

Merge pull request #1147 from naitsirch/master

Extended the docs for mapping attributes precision and scale
This commit is contained in:
Marco Pivetta 2014-10-03 00:50:00 +02:00
commit 0bff6aadbc
2 changed files with 11 additions and 5 deletions

View File

@ -99,10 +99,13 @@ Optional attributes:
string values for you.
- **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
only for decimal column)
- **scale**: The scale for a decimal (exact 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*.
- **unique**: Boolean value to determine if the value of the column
should be unique across all rows of the underlying entities table.

View File

@ -199,9 +199,12 @@ list:
- ``nullable``: (optional, default FALSE) Whether the database
column is nullable.
- ``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
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
DDL snippet that is used to create the column. Warning: This normally
confuses the SchemaTool to always detect the column as changed.