Ticket #1006 (closed defect: fixed)
doctrine-build-schema doesn't handle decimals with scales
| Reported by: | jontodd | Owned by: | jwage |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.0.4 |
| Component: | Attributes | Version: | 1.0.2 |
| Severity: | Keywords: | ||
| Cc: | Has Test: | no | |
| Status: | Pending Core Response | Has Patch: | no |
Description
When building schema file from existing DB, decimals orignially defined as numeric(9,8) become the following in the generated schema file:
number:
type: decimal(9)
it should be
number:
type: decimal(9)
scale: 8
Perhaps a better answer to this is to support the native format decimal(x,y), having to specify "scale: y" is unintuitive and not well documented on the site.
Change History
Note: See
TracTickets for help on using
tickets.