Closed 1vanov closed 3 years ago
ERROR: SQLSTATE[42000]: Syntax error or access violation: 1427 For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'discount')
Here're the migration files for the same table, but with different versions of devtools:
phlacon-devtools 3 (working):
'type' => Column::TYPE_DECIMAL, 'default' => "0.00", 'size' => 13, 'scale' => 2
phlacon-devtools 4 (not working):
'type' => Column::TYPE_DECIMAL, 'default' => "0.00", 'notNull' => false, 'scale' => 2,
As you can see, in the new migration I made using the updated devtools, there's no 'size' attribute for decimal type column, this causes an error.
Will be fixed when phalcon/migrations will be updated to v2.x
phalcon/migrations
v2.x
Related #1464
Closing in favor #1464
ERROR: SQLSTATE[42000]: Syntax error or access violation: 1427 For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'discount')
Here're the migration files for the same table, but with different versions of devtools:
phlacon-devtools 3 (working):
phlacon-devtools 4 (not working):
As you can see, in the new migration I made using the updated devtools, there's no 'size' attribute for decimal type column, this causes an error.